public class ServerVMClientUserTransaction extends Object implements UserTransaction, UserTransactionProvider, Referenceable, Externalizable
TransactionManager of the server.| Modifier and Type | Class and Description |
|---|---|
static interface |
ServerVMClientUserTransaction.UserTransactionStartedListener
Deprecated.
|
| Constructor and Description |
|---|
ServerVMClientUserTransaction()
Create a new instance.
|
ServerVMClientUserTransaction(TransactionManager tm) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
commit() |
Reference |
getReference() |
static ServerVMClientUserTransaction |
getSingleton()
Return a reference to the singleton instance.
|
int |
getStatus() |
static boolean |
isAvailable() |
boolean |
isServer() |
void |
readExternal(ObjectInput in) |
void |
registerTxStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener txStartedListener) |
void |
rollback() |
static void |
setAvailability(boolean available) |
void |
setRollbackOnly() |
void |
setTransactionManager(TransactionManager tm) |
void |
setTransactionRegistry(UserTransactionRegistry registry)
Set the user transaction registry
|
void |
setTransactionTimeout(int seconds) |
void |
unregisterTxStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener txStartedListener) |
void |
writeExternal(ObjectOutput out) |
public ServerVMClientUserTransaction()
public ServerVMClientUserTransaction(TransactionManager tm)
public static ServerVMClientUserTransaction getSingleton()
public boolean isServer()
public void registerTxStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener txStartedListener)
public void unregisterTxStartedListener(ServerVMClientUserTransaction.UserTransactionStartedListener txStartedListener)
public void setTransactionRegistry(UserTransactionRegistry registry)
UserTransactionProvidersetTransactionRegistry in interface UserTransactionProviderregistry - the registrypublic void setTransactionManager(TransactionManager tm)
public void begin()
throws NotSupportedException,
SystemException
begin in interface UserTransactionNotSupportedExceptionSystemExceptionpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface UserTransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws SecurityException,
IllegalStateException,
SystemException
rollback in interface UserTransactionSecurityExceptionIllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface UserTransactionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface UserTransactionSystemExceptionpublic void setTransactionTimeout(int seconds)
throws SystemException
setTransactionTimeout in interface UserTransactionSystemExceptionpublic Reference getReference() throws NamingException
getReference in interface ReferenceableNamingExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic static void setAvailability(boolean available)
public static boolean isAvailable()
Copyright © 2022 JBoss by Red Hat. All rights reserved.