|
GemFire 6.6.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.CancelCriterion
public abstract class CancelCriterion
Abstract cancellation proxy for cancelling an operation, esp. a thread.
CancelException| Constructor Summary | |
|---|---|
CancelCriterion()
|
|
| Method Summary | |
|---|---|
abstract String |
cancelInProgress()
Indicate if the service is in the progress of being cancelled. |
void |
checkCancelInProgress(Throwable e)
See if the current operation is being cancelled. |
abstract RuntimeException |
generateCancelledException(Throwable e)
Template factory method for generating the exception to be thrown by checkCancelInProgress(Throwable). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CancelCriterion()
| Method Detail |
|---|
public abstract String cancelInProgress()
InterruptedException,
that the current operation should be cancelled.
public final void checkCancelInProgress(Throwable e)
RuntimeException (usually a CancelException).
e - an underlying exception, if anycancelInProgress()public abstract RuntimeException generateCancelledException(Throwable e)
checkCancelInProgress(Throwable). Override this to specify
different exception for checkCancelInProgress() to throw.
e - an underlying exception, if any
|
GemFire 6.6.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||