Package org.wildfly.transaction.client
Class RemoteUserTransaction
java.lang.Object
org.wildfly.transaction.client.RemoteUserTransaction
- All Implemented Interfaces:
Serializable,UserTransaction
A remote
UserTransaction which controls the transaction state of a remote system.- Author:
- David M. Lloyd
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()voidcommit()intintvoidrollback()voidvoidsetTransactionTimeout(int seconds)
-
Method Details
-
begin
- Specified by:
beginin interfaceUserTransaction- Throws:
NotSupportedExceptionSystemException
-
commit
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException- Specified by:
commitin interfaceUserTransaction- Throws:
RollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemException
-
rollback
- Specified by:
rollbackin interfaceUserTransaction- Throws:
IllegalStateExceptionSecurityExceptionSystemException
-
setRollbackOnly
- Specified by:
setRollbackOnlyin interfaceUserTransaction- Throws:
IllegalStateExceptionSystemException
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceUserTransaction
-
setTransactionTimeout
- Specified by:
setTransactionTimeoutin interfaceUserTransaction- Throws:
SystemException
-
getTransactionTimeout
public int getTransactionTimeout()
-