Interface OperationContext
-
- All Superinterfaces:
IOCallback,IOCompletion
- All Known Implementing Classes:
DummyOperationContext,OperationContextImpl
public interface OperationContext extends IOCompletion
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecuteOnCompletion(IOCallback runnable)Execute the task when all IO operations are complete, Or execute it immediately if nothing is pending.voidexecuteOnCompletion(IOCallback runnable, boolean storeOnly)Execute the task when all IO operations are complete, Or execute it immediately if nothing is pending.voidpageSyncDone()voidpageSyncLineUp()voidreplicationDone()voidreplicationLineUp()voidwaitCompletion()booleanwaitCompletion(long timeout)-
Methods inherited from interface org.apache.activemq.artemis.core.io.IOCallback
done, onError
-
Methods inherited from interface org.apache.activemq.artemis.core.journal.IOCompletion
storeLineUp
-
-
-
-
Method Detail
-
executeOnCompletion
void executeOnCompletion(IOCallback runnable, boolean storeOnly)
Execute the task when all IO operations are complete, Or execute it immediately if nothing is pending.- Parameters:
runnable- the tas to be executed.storeOnly- There are tasks that won't need to wait on replication or paging and will need to be completed as soon as the response from the journal is received. An example would be the DuplicateCache
-
executeOnCompletion
void executeOnCompletion(IOCallback runnable)
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()
-
-