public interface Interruptible
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 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 interrupt()
call and resume with any in-progress work. |
void interrupt()
Interruptible
that it should not continue work beyond the current
point, until proceed()
is called. This call has no effect if the object is already interrupted.void proceed()
Interruptible
that it should may cancel a previous interrupt()
call and resume with any in-progress work. This call has no effect if the object is already proceeding.boolean isInterrupted()