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)
UserTransactionProvider
setTransactionRegistry
in interface UserTransactionProvider
registry
- the registrypublic void setTransactionManager(TransactionManager tm)
public void begin() throws NotSupportedException, SystemException
begin
in interface UserTransaction
NotSupportedException
SystemException
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
commit
in interface UserTransaction
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
public void rollback() throws SecurityException, IllegalStateException, SystemException
rollback
in interface UserTransaction
SecurityException
IllegalStateException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
setRollbackOnly
in interface UserTransaction
IllegalStateException
SystemException
public int getStatus() throws SystemException
getStatus
in interface UserTransaction
SystemException
public void setTransactionTimeout(int seconds) throws SystemException
setTransactionTimeout
in interface UserTransaction
SystemException
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public static void setAvailability(boolean available)
public static boolean isAvailable()
Copyright © 2023 JBoss by Red Hat. All rights reserved.