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 wrappedRemoteIterator
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.aristaflow.adept2.util.CleanupTask
CleanupTask.AbstractCleanupTask<EX extends Exception>, CleanupTask.AtomicCloseTask, CleanupTask.CloseAndResetTask, CleanupTask.MutableCloseTask
-
-
Field Summary
Fields Modifier and Type Field Description protected Logger
criLogger
protected RemoteIterator<?>
wrappedIterator
-
Fields inherited from class de.aristaflow.adept2.util.CleanupTask.AbstractCleanupTask
descriptor, logger
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CachingRemoteIteratorCloseTask(CachingRemoteIterator<?> obj)
Creates new clean-up for closing the wrappedRemoteIterator
of the designatedCachingRemoteIterator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup(boolean explicit)
Performs the actual clean-up.-
Methods inherited from class de.aristaflow.adept2.util.CleanupTask.AbstractCleanupTask
getDescriptor
-
-
-
-
Field Detail
-
criLogger
protected final Logger criLogger
-
wrappedIterator
protected final RemoteIterator<?> wrappedIterator
-
-
Constructor Detail
-
CachingRemoteIteratorCloseTask
protected CachingRemoteIteratorCloseTask(CachingRemoteIterator<?> obj)
Creates new clean-up for closing the wrappedRemoteIterator
of the designatedCachingRemoteIterator
.- Parameters:
obj
- TheCachingRemoteIterator
of which to close the wrappedRemoteIterator
.
-
-
Method Detail
-
cleanup
public void cleanup(boolean explicit) throws IOException
Description copied from interface:CleanupTask
Performs the actual clean-up. This method is only called byCleanup
and must NOT be called directly!- Parameters:
explicit
- Whether the clean-up was triggered explicitly viaCleanup.clean()
. Otherwise it was triggered implicitly as a post-mortem action by the object becoming phantom reachable.- Throws:
IOException
-
-