public interface OperationContext extends IOCompletion
When the entire set is done, a group of Runnables can be executed.
Modifier and Type | Method and Description |
---|---|
void |
executeOnCompletion(IOCallback runnable)
Execute the task when all IO operations are complete,
Or execute it immediately if nothing is pending.
|
void |
executeOnCompletion(IOCallback runnable,
boolean storeOnly)
Execute the task when all IO operations are complete,
Or execute it immediately if nothing is pending.
|
void |
pageSyncDone() |
void |
pageSyncLineUp() |
void |
replicationDone() |
void |
replicationLineUp() |
void |
waitCompletion() |
boolean |
waitCompletion(long timeout) |
storeLineUp
done, onError
void executeOnCompletion(IOCallback runnable, boolean storeOnly)
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
DuplicateCachevoid executeOnCompletion(IOCallback runnable)
runnable
- the tas to be executed.void replicationLineUp()
void replicationDone()
void pageSyncLineUp()
void pageSyncDone()
Copyright © 2017 JBoss by Red Hat. All rights reserved.