public class DriveOperationsSequence extends Task<Void,IOException>
| Modifier and Type | Class and Description |
|---|---|
static interface |
DriveOperationsSequence.Operation
Interface for an operation.
|
static class |
DriveOperationsSequence.ReadOperation
Read data from a file.
|
static class |
DriveOperationsSequence.WriteIntegerOperation
Write an integer value using
ByteBuffer.putInt(int). |
static class |
DriveOperationsSequence.WriteLongOperation
Write a long value using
ByteBuffer.putLong(long). |
static class |
DriveOperationsSequence.WriteOperation
Write data to a file.
|
static class |
DriveOperationsSequence.WriteOperationSubBuffer
Write a sub-part of a buffer.
|
Task.Cpu<T,TError extends Exception>, Task.Done<T,TError extends Exception>, Task.OnFile<T,TError extends Exception>, Task.Output, Task.Parameter<TParam,TResult,TError extends Exception>, Task.Unmanaged<TResult,TError extends Exception>NB_PRIORITES, PRIORITY_BACKGROUND, PRIORITY_IMPORTANT, PRIORITY_LOW, PRIORITY_NORMAL, PRIORITY_RATHER_IMPORTANT, PRIORITY_RATHER_LOW, PRIORITY_TOP, PRIORITY_URGENT, STATUS_BLOCKED, STATUS_DONE, STATUS_EXECUTED, STATUS_NOT_STARTED, STATUS_RUNNING, STATUS_STARTED_READY, STATUS_STARTED_WAITING, taskJoin| Constructor and Description |
|---|
DriveOperationsSequence(TaskManager manager,
String description,
byte priority,
boolean autoStart)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(DriveOperationsSequence.Operation operation)
Append an operation.
|
void |
endOfOperations()
Indicate no more operation will be added.
|
Void |
run()
Method to implement to execute the task.
|
cancel, cancelIfExecutionNotStarted, changeNextExecutionTime, ensureUnblocked, executeAgainAt, executeAgainIn, executeAt, executeEvery, executeIn, executeNextOccurenceNow, executeNextOccurenceNow, getApplication, getCancelEvent, getDescription, getError, getMaxBlockingTimeInNanoBeforeToLog, getOutput, getPriority, getResult, getStatus, getTaskManager, hasError, isCancelled, isCancelling, isDone, isRunning, isStarted, isSuccessful, ondone, setDescription, setDone, setError, setPriority, start, startOn, startOn, startOnDone, stopRepeat, toStringpublic DriveOperationsSequence(TaskManager manager, String description, byte priority, boolean autoStart)
public void add(DriveOperationsSequence.Operation operation)
public void endOfOperations()
public Void run() throws IOException
Taskrun in class Task<Void,IOException>IOExceptionCopyright © 2019. All rights reserved.