Package one.microstream.storage.types
Class StorageChannelSynchronizingTask.AbstractCompletingTask<R>
- java.lang.Object
-
- one.microstream.storage.types.StorageTask.Abstract
-
- one.microstream.storage.types.StorageChannelTask.Abstract<R>
-
- one.microstream.storage.types.StorageChannelSynchronizingTask.AbstractCompletingTask<R>
-
- All Implemented Interfaces:
StorageChannelSynchronizingTask,StorageChannelTask,StorageTask
- Direct Known Subclasses:
StorageChannelSynchronizingTask.AbstractCompletingTask.Dummy,StorageChannelTaskInitialize.Default,StorageChannelTaskShutdown.Default,StorageRequestTaskCacheCheck.Default,StorageRequestTaskCreateStatistics.Default,StorageRequestTaskExportChannels.Default,StorageRequestTaskExportEntitiesByType.Default,StorageRequestTaskFileCheck.Default,StorageRequestTaskGarbageCollection.Default,StorageRequestTaskImportData.Abstract,StorageRequestTaskStoreEntities.Default
- Enclosing interface:
- StorageChannelSynchronizingTask
public abstract static class StorageChannelSynchronizingTask.AbstractCompletingTask<R> extends StorageChannelTask.Abstract<R> implements StorageChannelSynchronizingTask
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStorageChannelSynchronizingTask.AbstractCompletingTask.Dummy-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageChannelSynchronizingTask
StorageChannelSynchronizingTask.AbstractCompletingTask<R>
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageChannelTask
StorageChannelTask.Abstract<R>
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageTask
StorageTask.Abstract, StorageTask.DummyTask
-
-
Field Summary
-
Fields inherited from class one.microstream.storage.types.StorageChannelTask.Abstract
controller
-
-
Constructor Summary
Constructors Constructor Description AbstractCompletingTask(long timestamp, int channelCount, StorageOperationController controller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcomplete(StorageChannel channel, R result)protected voidfail(StorageChannel channel, R result)protected RinternalProcessBy(StorageChannel channel)protected voidpostCompletionSuccess(StorageChannel channel, R result)protected voidsucceed(StorageChannel channel, R result)-
Methods inherited from class one.microstream.storage.types.StorageChannelTask.Abstract
addProblem, channelCount, cleanUp, finishProcessing, hasProblems, incrementCompletionProgress, incrementProcessingProgress, isComplete, isProcessed, problemForChannel, problems, processBy, waitOnCompletion, waitOnProcessing
-
Methods inherited from class one.microstream.storage.types.StorageTask.Abstract
awaitNext, next, setNext, timestamp
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface one.microstream.storage.types.StorageChannelSynchronizingTask
incrementProcessingProgress, isProcessed, waitOnProcessing
-
Methods inherited from interface one.microstream.storage.types.StorageChannelTask
addProblem, incrementCompletionProgress
-
Methods inherited from interface one.microstream.storage.types.StorageTask
awaitNext, hasProblems, isComplete, next, problemForChannel, problems, processBy, setNext, timestamp, waitOnCompletion
-
-
-
-
Constructor Detail
-
AbstractCompletingTask
public AbstractCompletingTask(long timestamp, int channelCount, StorageOperationController controller)
-
-
Method Detail
-
succeed
protected void succeed(StorageChannel channel, R result)
-
fail
protected void fail(StorageChannel channel, R result)
-
postCompletionSuccess
protected void postCompletionSuccess(StorageChannel channel, R result) throws InterruptedException
- Throws:
InterruptedException
-
internalProcessBy
protected R internalProcessBy(StorageChannel channel)
- Specified by:
internalProcessByin classStorageChannelTask.Abstract<R>
-
complete
protected final void complete(StorageChannel channel, R result) throws InterruptedException
- Specified by:
completein classStorageChannelTask.Abstract<R>- Throws:
InterruptedException
-
-