Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
229 views

Program to check if a window is opened or not during some time interval

I'm trying to write a program that will check if a window is opened or not, during a given time. I was able to do that, but now I'm trying to make my code look cleaner. I don't like how I implement ...
Minh Hoang's user avatar
3 votes
1 answer
218 views

TimeoutManager: check whether a task has been finished within a given time

I want to make a helper class, which raises an event whenever something is not finished in a certain time. Example: my program sends out multiple network messages concurrently. After a random delay, ...
HugoRune's user avatar
  • 349
3 votes
2 answers
4k views

Timeout implementation of fetch

After doing some research on google i didn't find any good info on how to implement timeout with fetch (looks like there are multiple proposals but that's about it so nothing has implemented it). For ...
coding4fun's user avatar
1 vote
2 answers
95 views

Reinitialize cache periodically, catching and logging any Throwables

My existing code has a scheduler that we init when a DataStore constructor is called. ...
Naman's user avatar
  • 111
3 votes
2 answers
294 views

Exception handling for timing CouchBase fetch

...
Jas's user avatar
  • 173
7 votes
1 answer
714 views

Pausing a SwingWorker with a Timer

I made a SwingWorker which is fetching tweets using the twitter4j API. The twitter API will allow 180 queries every 15 minutes, and then throw an exception with ...
Aki K's user avatar
  • 1,329
7 votes
2 answers
513 views

Exception handling for HTTP request timer

This method is used to check a URL and return the time it takes to check and the HTTP status code: ...
moto_beats's user avatar
14 votes
2 answers
326 views

Executing a program with a temporary directory and measuring the running time

I need a code review for best practices and code correctness of the following piece of code. run executes a program and validates in output. If the output is valid ...
Alexandru's user avatar
  • 409