Interface OperationContext
- All Superinterfaces:
IOCallback,IOCompletion
- All Known Implementing Classes:
DummyOperationContext,OperationContextImpl
This represents a set of operations done as part of replication.
When the entire set is done, a group of Runnables can be executed.
-
Method Summary
Modifier and TypeMethodDescriptionvoidexecuteOnCompletion(IOCallback runnable) Execute the task when all IO operations are complete, Or execute it immediately if nothing is pending.voidexecuteOnCompletion(IOCallback runnable, OperationConsistencyLevel consistencyLevel) Execute the task when all IO operations are complete, Or execute it immediately if nothing is pending.voidvoidvoidvoiddefault voidreset()voidbooleanwaitCompletion(long timeout) Wait for the completion of this operation.Methods inherited from interface org.apache.activemq.artemis.core.io.IOCallback
done, onErrorMethods inherited from interface org.apache.activemq.artemis.core.journal.IOCompletion
storeLineUp
-
Method Details
-
executeOnCompletion
Execute the task when all IO operations are complete, Or execute it immediately if nothing is pending. Notice it's possible to pass a consistencyLevel to what should be waited before completing the operation. -
executeOnCompletion
Execute the task when all IO operations are complete, Or execute it immediately if nothing is pending.- Parameters:
runnable- the tas to be executed.
-
replicationLineUp
void replicationLineUp() -
replicationDone
void replicationDone() -
pageSyncLineUp
void pageSyncLineUp() -
pageSyncDone
void pageSyncDone() -
waitCompletion
- Throws:
Exception
-
waitCompletion
Wait for the completion of this operation.- Parameters:
timeout- how long to wait in milliseconds- Returns:
trueif the operation completed within the specified timeout;falseif not- Throws:
Exception
-
reset
default void reset()
-