Package org.opends.server.types
Class Cancellable
java.lang.Object
org.opends.server.types.Cancellable
- Direct Known Subclasses:
LDIFExportConfig,LDIFImportConfig
Base for data structures that define configuration for operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel(LocalizableMessage cancelReason) Indicates that this operation has been cancelled, and the operation if executing should finish as soon as possible.Returns the cancel reason for this operation.booleanIndicates whether this operation has been cancelled.toString()
-
Constructor Details
-
Cancellable
public Cancellable()
-
-
Method Details
-
cancel
Indicates that this operation has been cancelled, and the operation if executing should finish as soon as possible.- Parameters:
cancelReason- the reason for which this task was cancelled
-
isCancelled
public boolean isCancelled()Indicates whether this operation has been cancelled.- Returns:
- boolean where true indicates that this operation has been cancelled and if currently executing will finish as soon as possible
-
getCancelReason
Returns the cancel reason for this operation.- Returns:
- the cancel reason for this operation
-
toString
-