Class AbstractPersistenceManager.Task

java.lang.Object
com.tangosol.util.Base
com.tangosol.persistence.AbstractPersistenceManager.Task
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
AbstractPersistenceManager.AbstractPersistentStore.BatchTask, AbstractPersistenceManager.AbstractPersistentStore.DeleteExtentTask, AbstractPersistenceManager.AbstractPersistentStore.OpenTask
Enclosing class:
AbstractPersistenceManager<PS extends AbstractPersistenceManager.AbstractPersistentStore>

public abstract class AbstractPersistenceManager.Task extends Base implements Runnable
Runnable extension that adds the ability to notify the task that it has been canceled.
  • Field Details

    • f_canceled

      protected boolean f_canceled
      Canceled flag.
  • Constructor Details

    • Task

      public Task()
  • Method Details

    • execute

      public abstract void execute()
      Execute the task.
    • cancel

      public final void cancel(Throwable eCause)
      Cancel execution of the task.
      Parameters:
      eCause - the optional cause of the cancellation
    • register

      protected void register()
      Register this task with the manager.
    • notifyCanceled

      protected void notifyCanceled(Throwable eCause)
      Notify the task that it has been canceled.
      Parameters:
      eCause - the optional cause of the cancellation
    • run

      public final void run()
      Specified by:
      run in interface Runnable