|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SuspendableHandler<A>
A handler for consuming the result of an suspendable operation.
The suspendable operations defined in this package allow a suspendable handler
to be specified to consume the result of an suspensable operation.
When an operation completes the handler's #interupted,#resumed,#cancelled
method is invoked with the result.
Method Summary | |
---|---|
void |
expired(A attachment)
Invoked when a suspendable is expired (using the timeout value specified by calling SuspendableFilter.suspend(java.lang.String) ) |
void |
interupted(A attachment)
Invoked when a suspendable is cancelled (by calling Suspendable.cancel() ) |
void |
resumed(A attachment)
Invoked when a suspendable is resumed (by calling Suspendable.resume() ) |
Method Detail |
---|
void interupted(A attachment)
Suspendable.cancel()
)
attachment
- void resumed(A attachment)
Suspendable.resume()
)
attachment
- void expired(A attachment)
SuspendableFilter.suspend(java.lang.String)
)
attachment
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |