Package com.bayesserver
Class DefaultCancellation
- java.lang.Object
-
- com.bayesserver.DefaultCancellation
-
- All Implemented Interfaces:
Cancellation
public final class DefaultCancellation extends Object implements Cancellation
Class for canceling long running operations.- See Also:
Cancellation
-
-
Constructor Summary
Constructors Constructor Description DefaultCancellation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getCancel()
When set totrue
attempts to cancel a long running operation.void
setCancel(boolean value)
When set totrue
attempts to cancel a long running operation.
-
-
-
Method Detail
-
getCancel
public boolean getCancel()
When set totrue
attempts to cancel a long running operation. The value must be set by a thread other than the thread running the operation to be cancelled.- Specified by:
getCancel
in interfaceCancellation
-
setCancel
public void setCancel(boolean value)
When set totrue
attempts to cancel a long running operation. The value must be set by a thread other than the thread running the operation to be cancelled.- Specified by:
setCancel
in interfaceCancellation
-
-