public final class DummyOperationContext extends Object implements OperationContext
Constructor and Description |
---|
DummyOperationContext() |
Modifier and Type | Method and Description |
---|---|
void |
done()
Method for sync notifications.
|
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.
|
static OperationContext |
getInstance() |
void |
onError(int errorCode,
String errorMessage)
Method for error notifications.
|
void |
pageSyncDone() |
void |
pageSyncLineUp() |
void |
replicationDone() |
void |
replicationLineUp() |
void |
storeLineUp() |
void |
waitCompletion() |
boolean |
waitCompletion(long timeout) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
done, onError
public static OperationContext getInstance()
public void executeOnCompletion(IOCallback runnable)
OperationContext
executeOnCompletion
in interface OperationContext
runnable
- the tas to be executed.public void executeOnCompletion(IOCallback runnable, boolean storeOnly)
OperationContext
executeOnCompletion
in interface OperationContext
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
DuplicateCachepublic void replicationDone()
replicationDone
in interface OperationContext
public void replicationLineUp()
replicationLineUp
in interface OperationContext
public void storeLineUp()
storeLineUp
in interface IOCompletion
public void done()
IOCallback
done
in interface IOCallback
public void onError(int errorCode, String errorMessage)
IOCallback
onError
in interface IOCallback
public void waitCompletion()
waitCompletion
in interface OperationContext
public boolean waitCompletion(long timeout)
waitCompletion
in interface OperationContext
timeout
- in millisecondspublic void pageSyncLineUp()
pageSyncLineUp
in interface OperationContext
public void pageSyncDone()
pageSyncDone
in interface OperationContext
Copyright © 2019 JBoss by Red Hat. All rights reserved.