org.jboss.messaging.core.journal.impl
Class TransactionCallback
java.lang.Object
org.jboss.messaging.core.journal.impl.TransactionCallback
- All Implemented Interfaces:
- AIOCallback, IOCallback
public class TransactionCallback
- extends java.lang.Object
- implements IOCallback
A TransactionCallback
- Author:
- Clebert Suconic
Method Summary |
void |
countUp()
|
void |
done()
Leave this method as soon as possible, or you would be blocking the whole notification thread |
int |
getErrorCode()
|
java.lang.String |
getErrorMessage()
|
void |
onError(int errorCode,
java.lang.String errorMessage)
Observation: The whole file will be probably failing if this happens. |
void |
waitCompletion()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionCallback
public TransactionCallback()
countUp
public void countUp()
done
public void done()
- Description copied from interface:
AIOCallback
- Leave this method as soon as possible, or you would be blocking the whole notification thread
- Specified by:
done
in interface AIOCallback
waitCompletion
public void waitCompletion()
throws java.lang.InterruptedException
- Specified by:
waitCompletion
in interface IOCallback
- Throws:
java.lang.InterruptedException
onError
public void onError(int errorCode,
java.lang.String errorMessage)
- Description copied from interface:
AIOCallback
- 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:
onError
in interface AIOCallback
getErrorMessage
public java.lang.String getErrorMessage()
- Returns:
- the errorMessage
getErrorCode
public int getErrorCode()
- Returns:
- the errorCode
Copyright © 2006 JBoss Inc. All Rights Reserved.