C
- is the type of Element
s 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, wait
getCandidates, getName
public void interrupt()
Interruptible
Interruptible
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 Interruptible
public void proceed()
Interruptible
Interruptible
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 Interruptible
public boolean isInterrupted()
Interruptible
isInterrupted
in interface Interruptible