Class TransactionCallback
- java.lang.Object
-
- org.apache.activemq.artemis.core.journal.impl.TransactionCallback
-
- All Implemented Interfaces:
IOCallback
public class TransactionCallback extends java.lang.Object implements IOCallback
-
-
Constructor Summary
Constructors Constructor Description TransactionCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcountUp()voiddone()Method for sync notifications.IOCallbackgetDelegateCompletion()intgetErrorCode()java.lang.StringgetErrorMessage()voidonError(int errorCode, java.lang.String errorMessage)Method for error notifications.voidsetDelegateCompletion(IOCallback delegateCompletion)voidwaitCompletion()
-
-
-
Method Detail
-
countUp
public void countUp()
-
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
-
waitCompletion
public void waitCompletion() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
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- Specified by:
onErrorin interfaceIOCallback
-
getDelegateCompletion
public IOCallback getDelegateCompletion()
- Returns:
- the delegateCompletion
-
setDelegateCompletion
public void setDelegateCompletion(IOCallback delegateCompletion)
- Parameters:
delegateCompletion- the delegateCompletion to set
-
getErrorMessage
public java.lang.String getErrorMessage()
- Returns:
- the errorMessage
-
getErrorCode
public int getErrorCode()
- Returns:
- the errorCode
-
-