Class CachingRemoteIterator.CachingRemoteIteratorCloseTask

java.lang.Object
de.aristaflow.adept2.util.CleanupTask.AbstractCleanupTask<IOException>
de.aristaflow.adept2.model.common.collection.CachingRemoteIterator.CachingRemoteIteratorCloseTask
All Implemented Interfaces:
CleanupTask<IOException>
Enclosing class:
CachingRemoteIterator<T>

protected static final class CachingRemoteIterator.CachingRemoteIteratorCloseTask extends CleanupTask.AbstractCleanupTask<IOException>
The clean-up task for closing the wrapped RemoteIterator.
  • Field Details

  • Constructor Details

    • CachingRemoteIteratorCloseTask

      protected CachingRemoteIteratorCloseTask(CachingRemoteIterator<?> obj)
      Creates new clean-up for closing the wrapped RemoteIterator of the designated CachingRemoteIterator.
      Parameters:
      obj - The CachingRemoteIterator of which to close the wrapped RemoteIterator.
  • Method Details

    • cleanup

      public void cleanup(boolean explicit) throws IOException
      Description copied from interface: CleanupTask
      Performs the actual clean-up. This method is only called by Cleanup and must NOT be called directly!
      Parameters:
      explicit - Whether the clean-up was triggered explicitly via Cleanup.clean(). Otherwise it was triggered implicitly as a post-mortem action by the object becoming phantom reachable.
      Throws:
      IOException