Class DummyOperationContext
java.lang.Object
org.apache.activemq.artemis.core.persistence.impl.journal.DummyOperationContext
- All Implemented Interfaces:
IOCallback,IOCompletion,OperationContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddone()Method for sync notifications.voidexecuteOnCompletion(IOCallback runnable) Execute the task when all IO operations are complete, Or execute it immediately if nothing is pending.voidexecuteOnCompletion(IOCallback runnable, OperationConsistencyLevel consistencyLevel) Execute the task when all IO operations are complete, Or execute it immediately if nothing is pending.static OperationContextvoidMethod for error notifications.voidvoidvoidvoidvoidvoidbooleanwaitCompletion(long timeout) Wait for the completion of this operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.persistence.OperationContext
reset
-
Constructor Details
-
DummyOperationContext
public DummyOperationContext()
-
-
Method Details
-
getInstance
-
executeOnCompletion
Description copied from interface:OperationContextExecute the task when all IO operations are complete, Or execute it immediately if nothing is pending.- Specified by:
executeOnCompletionin interfaceOperationContext- Parameters:
runnable- the tas to be executed.
-
executeOnCompletion
Description copied from interface:OperationContextExecute the task when all IO operations are complete, Or execute it immediately if nothing is pending. Notice it's possible to pass a consistencyLevel to what should be waited before completing the operation.- Specified by:
executeOnCompletionin interfaceOperationContext
-
replicationDone
public void replicationDone()- Specified by:
replicationDonein interfaceOperationContext
-
replicationLineUp
public void replicationLineUp()- Specified by:
replicationLineUpin interfaceOperationContext
-
storeLineUp
public void storeLineUp()- Specified by:
storeLineUpin interfaceIOCompletion
-
done
public void done()Description copied from interface:IOCallbackMethod for sync notifications. When this callback method is called, there is a guarantee the data is written on the disk.Note:Leave this method as soon as possible, or you would be blocking the whole notification thread
- Specified by:
donein interfaceIOCallback
-
onError
Description copied from interface:IOCallbackMethod for error notifications. Observation: The whole file will be probably failing if this happens. Like, if you delete the file, you will start to get errors for these operations- Specified by:
onErrorin interfaceIOCallback
-
waitCompletion
public void waitCompletion()- Specified by:
waitCompletionin interfaceOperationContext
-
waitCompletion
public boolean waitCompletion(long timeout) Description copied from interface:OperationContextWait for the completion of this operation.- Specified by:
waitCompletionin interfaceOperationContext- Parameters:
timeout- how long to wait in milliseconds- Returns:
trueif the operation completed within the specified timeout;falseif not
-
pageSyncLineUp
public void pageSyncLineUp()- Specified by:
pageSyncLineUpin interfaceOperationContext
-
pageSyncDone
public void pageSyncDone()- Specified by:
pageSyncDonein interfaceOperationContext
-