C - is the type of Elements to which the Strategy applies.public abstract class InterruptibleStrategy<C extends Element> extends java.lang.Object implements Strategy<C>
| Constructor and Description |
|---|
InterruptibleStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
interrupt()
A call to interrupt indicates to an
Interruptible that it should not continue work beyond the current
point, until Interruptible.proceed() is called. |
boolean |
isInterrupted()
Indicates whether the object is interrupted or not.
|
void |
proceed()
A call to proceed indicates to an
Interruptible that it should may cancel a previous Interruptible.interrupt()
call and resume with any in-progress work. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCandidates, getNamepublic void interrupt()
InterruptibleInterruptible that it should not continue work beyond the current
point, until Interruptible.proceed() is called. This call has no effect if the object is already interrupted.interrupt in interface Interruptiblepublic void proceed()
InterruptibleInterruptible that it should may cancel a previous Interruptible.interrupt()
call and resume with any in-progress work. This call has no effect if the object is already proceeding.proceed in interface Interruptiblepublic boolean isInterrupted()
InterruptibleisInterrupted in interface Interruptible