Package com.smeup.kokos.sdk.caller
Class TimedExecutor
java.lang.Object
com.smeup.kokos.sdk.caller.TimedExecutor
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TimedExecutor
public TimedExecutor()
-
-
Method Details
-
execute
Runs a task with configuration provided FUN timeout.- Throws:
Exception
-
execute
Runs a task with specified timeout. If timeout is 0 task is executed immediately, otherwise a thread will start and specified time is waited before sending it an interrupt signal.- Parameters:
task- the task to runtimeout- the value of the timeout in milliseconds (ms)- Throws:
Exception- the timeout exception or another task runtime exception thrown during its execution
-