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(IOAsyncTask completion)
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 OperationContext getContext()
public static OperationContext getContext(ExecutorFactory executorFactory)
public static void setContext(OperationContext context)
public void pageSyncLineUp()
pageSyncLineUp
in interface OperationContext
public void pageSyncDone()
pageSyncDone
in interface OperationContext
public void storeLineUp()
storeLineUp
in interface IOCompletion
public void replicationLineUp()
replicationLineUp
in interface OperationContext
public void replicationDone()
replicationDone
in interface OperationContext
public void executeOnCompletion(IOAsyncTask completion)
OperationContext
executeOnCompletion
in interface OperationContext
public void done()
AIOCallback
done
in interface AIOCallback
public void complete()
public void onError(int errorCode, String errorMessage)
AIOCallback
onError
in interface AIOCallback
public void waitCompletion() throws Exception
waitCompletion
in interface OperationContext
Exception
public boolean waitCompletion(long timeout) throws Exception
waitCompletion
in interface OperationContext
Exception
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.