Class DummyCallback
- java.lang.Object
-
- org.apache.activemq.artemis.core.journal.impl.SyncIOCompletion
-
- org.apache.activemq.artemis.core.io.DummyCallback
-
- All Implemented Interfaces:
IOCallback,IOCompletion
public class DummyCallback extends SyncIOCompletion
-
-
Constructor Summary
Constructors Constructor Description DummyCallback()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddone()Method for sync notifications.static DummyCallbackgetInstance()voidonError(int errorCode, java.lang.String errorMessage)Method for error notifications.voidstoreLineUp()voidwaitCompletion()
-
-
-
Method Detail
-
getInstance
public static DummyCallback getInstance()
-
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
-
onError
public void onError(int errorCode, java.lang.String errorMessage)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
-
waitCompletion
public void waitCompletion() throws java.lang.Exception- Specified by:
waitCompletionin classSyncIOCompletion- Throws:
java.lang.Exception
-
storeLineUp
public void storeLineUp()
-
-