public abstract static class StorageChannelTask.Abstract<R> extends StorageTask.Abstract implements StorageChannelTask
StorageChannelTask.Abstract<R>StorageTask.DummyTask| Modifier and Type | Field and Description |
|---|---|
protected StorageOperationController |
controller |
| Constructor and Description |
|---|
Abstract(long timestamp,
int channelCount,
StorageOperationController controller) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProblem(int hashIndex,
Throwable problem) |
protected int |
channelCount() |
protected void |
cleanUp(StorageChannel channel) |
protected abstract void |
complete(StorageChannel channel,
R value) |
protected void |
finishProcessing() |
boolean |
hasProblems() |
void |
incrementCompletionProgress() |
void |
incrementProcessingProgress() |
protected abstract R |
internalProcessBy(StorageChannel channel) |
boolean |
isComplete() |
boolean |
isProcessed() |
Throwable |
problemForChannel(StorageChannel channel) |
Throwable[] |
problems() |
void |
processBy(StorageChannel storageChannel) |
void |
waitOnCompletion() |
void |
waitOnProcessing() |
awaitNext, next, setNext, timestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitawaitNext, next, setNext, timestampprotected final StorageOperationController controller
public Abstract(long timestamp,
int channelCount,
StorageOperationController controller)
protected abstract R internalProcessBy(StorageChannel channel)
protected abstract void complete(StorageChannel channel, R value) throws InterruptedException
InterruptedExceptionprotected void finishProcessing()
protected void cleanUp(StorageChannel channel)
protected final int channelCount()
public final void incrementCompletionProgress()
incrementCompletionProgress in interface StorageChannelTaskpublic final boolean isComplete()
isComplete in interface StorageTaskpublic final void waitOnCompletion()
throws InterruptedException
waitOnCompletion in interface StorageTaskInterruptedExceptionpublic final boolean hasProblems()
hasProblems in interface StorageTaskpublic final Throwable[] problems()
problems in interface StorageTaskpublic final Throwable problemForChannel(StorageChannel channel)
problemForChannel in interface StorageTaskpublic final void addProblem(int hashIndex,
Throwable problem)
addProblem in interface StorageChannelTaskpublic final boolean isProcessed()
public final void waitOnProcessing()
throws InterruptedException
InterruptedExceptionpublic final void incrementProcessingProgress()
public final void processBy(StorageChannel storageChannel) throws InterruptedException
processBy in interface StorageTaskInterruptedExceptionCopyright © 2022 MicroStream Software. All rights reserved.