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, waitdone, onErrorpublic static OperationContext getInstance()
public void executeOnCompletion(IOCallback runnable)
OperationContextexecuteOnCompletion in interface OperationContextrunnable - the tas to be executed.public void executeOnCompletion(IOCallback runnable, boolean storeOnly)
OperationContextexecuteOnCompletion in interface OperationContextrunnable - 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 OperationContextpublic void replicationLineUp()
replicationLineUp in interface OperationContextpublic void storeLineUp()
storeLineUp in interface IOCompletionpublic void done()
IOCallbackdone in interface IOCallbackpublic void onError(int errorCode,
String errorMessage)
IOCallbackonError in interface IOCallbackpublic void waitCompletion()
waitCompletion in interface OperationContextpublic boolean waitCompletion(long timeout)
waitCompletion in interface OperationContexttimeout - in millisecondspublic void pageSyncLineUp()
pageSyncLineUp in interface OperationContextpublic void pageSyncDone()
pageSyncDone in interface OperationContextCopyright © 2021 JBoss by Red Hat. All rights reserved.