|
GemFire 5.8 | ||||||||
| 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.
ThreadInterruptedException| Constructor Summary | |
|---|---|
CancelCriterion()
|
|
| Method Summary | |
|---|---|
abstract String |
cancelInProgress()
Indicate if the service is in the progress of being cancelled. |
abstract String |
cancelled()
Indicates that the service has terminated. |
void |
checkCancelInProgress(Throwable e)
See if the current operation is being cancelled. |
void |
checkCancelled()
See if the current operation has been 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.
In particular, a DistributionManager returns a non-null result if
message distribution has been terminated.
public abstract String cancelled()
public final void checkCancelled()
throws ShutdownException
ShutdownException
TODO: change to throws CancelledException instead
ShutdownException - if we have been cancelledcancelled()
public final void checkCancelInProgress(Throwable e)
throws ThreadInterruptedException
ThreadInterruptedException or a ShutdownException.
It throws the former only if the thread is currently in an
interrupted state.
TODO: change to throws CancelledException instead
e - an underlying exception, if any
ThreadInterruptedException
ShutdownExceptioncancelInProgress()public abstract RuntimeException generateCancelledException(Throwable e)
checkCancelInProgress(Throwable). Override this to specify different
a exception for checkCancelInProgress to throw.
TODO: change to return CancelledException instead
e - an underlying exception, if any
|
GemFire 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||