public class OperationContextImpl extends Object implements OperationContext
| Constructor and Description |
|---|
OperationContextImpl(Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearContext() |
void |
complete() |
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 completion,
boolean storeOnly)
Execute the task when all IO operations are complete,
Or execute it immediately if nothing is pending.
|
static OperationContext |
getContext() |
static OperationContext |
getContext(ExecutorFactory executorFactory) |
void |
onError(int errorCode,
String errorMessage)
Method for error notifications.
|
void |
pageSyncDone() |
void |
pageSyncLineUp() |
void |
replicationDone() |
void |
replicationLineUp() |
static void |
setContext(OperationContext context) |
void |
storeLineUp() |
String |
toString() |
void |
waitCompletion() |
boolean |
waitCompletion(long timeout) |
public OperationContextImpl(Executor executor)
public static void clearContext()
public static final OperationContext getContext()
public static OperationContext getContext(ExecutorFactory executorFactory)
public static void setContext(OperationContext context)
public void pageSyncLineUp()
pageSyncLineUp in interface OperationContextpublic void pageSyncDone()
pageSyncDone in interface OperationContextpublic void storeLineUp()
storeLineUp in interface IOCompletionpublic void replicationLineUp()
replicationLineUp in interface OperationContextpublic void replicationDone()
replicationDone in interface OperationContextpublic void executeOnCompletion(IOCallback runnable)
OperationContextexecuteOnCompletion in interface OperationContextrunnable - the tas to be executed.public void executeOnCompletion(IOCallback completion, boolean storeOnly)
OperationContextexecuteOnCompletion in interface OperationContextcompletion - 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 done()
IOCallbackdone in interface IOCallbackpublic void complete()
public void onError(int errorCode,
String errorMessage)
IOCallbackonError in interface IOCallbackpublic void waitCompletion()
throws Exception
waitCompletion in interface OperationContextExceptionpublic boolean waitCompletion(long timeout)
throws InterruptedException,
ActiveMQException
waitCompletion in interface OperationContexttimeout - in millisecondsInterruptedExceptionActiveMQExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.