|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Cancelable
An operation that can be canceled.
| Method Summary | |
|---|---|
void |
cancel(String reason)
Cancels the operation execution, with the given reason for doing so. |
String |
getCancelReason()
Gets a message describing why the operation was canceled. |
boolean |
isCanceled()
Gets whether the operation has been canceled. |
| Method Detail |
|---|
boolean isCanceled()
void cancel(String reason)
This method merely sets the operation status to canceled; it cannot
necessarily stop the operation itself. That is, it is the responsibility of
each individual operation to check isCanceled() in a timely manner
during execution, and stop doing whatever it is doing if the flag has been
tripped.
reason - A message describing why the operation is being canceled.String getCancelReason()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||