Tag Archives: java

Timeout a Java Method

When you run a long lasting method, you may want to set a timeout for the operation. In this example, a long lasting method called someMethod() is being wrapped within another method called someMethodWithTimeout() which will timeout in 10 seconds … Continue reading

Posted in java | Tagged , , | Leave a comment