|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4j.CancelableVolatile
public class CancelableVolatile
A simple Cancelable implementation that can be used to
synchronize a cancel request between threads without locking.
| Constructor Summary | |
|---|---|
CancelableVolatile()
|
|
| Method Summary | |
|---|---|
void |
cancel()
Try to cancel the unit of work. |
boolean |
isCanceled()
Returns if the unit of work was canceled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CancelableVolatile()
| Method Detail |
|---|
public final void cancel()
cancel in interface Cancelablepublic final boolean isCanceled()
isCanceled in interface Cancelabletrue else false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||