public interface IAsyncHandler
IAsyncHandlerProvider#start(IAsyncCallable, long, String, boolean)
invocation and controls its
life cycle.Modifier and Type | Method and Description |
---|---|
boolean |
isTerminated()
Specifies whether this async handler is terminated and will not run again
|
void |
resume()
Resume the life cycle of the handler if it is in suspended mode, the next execution will be
scheduled according to the idle delay timeout the handler was created with
|
void |
resumeNow()
Resume the life cycle of the handler if it is in suspended mode, the next execution will
start immediately.
|
void |
stop(long timeout,
TimeUnit units)
Stop the execution of this async handler.
|
void |
wakeUp()
Wakes up the handler if in idle state and execute a cycle of the runnable
|
boolean |
wakeUpAndWait(long timeout,
TimeUnit units)
Wakes up the handler if in idle or suspended state and wait for it complete one cycle.
|
void wakeUp()
boolean wakeUpAndWait(long timeout, TimeUnit units)
void stop(long timeout, TimeUnit units)
void resume()
void resumeNow()
boolean isTerminated()
Copyright © GigaSpaces.