Class Cancellable

java.lang.Object
org.opends.server.types.Cancellable
Direct Known Subclasses:
LDIFExportConfig, LDIFImportConfig

public class Cancellable extends Object
Base for data structures that define configuration for operations.
  • Constructor Details

    • Cancellable

      public Cancellable()
  • Method Details

    • cancel

      public void cancel(LocalizableMessage cancelReason)
      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

      public LocalizableMessage getCancelReason()
      Returns the cancel reason for this operation.
      Returns:
      the cancel reason for this operation
    • toString

      public String toString()
      Overrides:
      toString in class Object