public final class RemoteTransaction extends AbstractTransaction
| Modifier and Type | Method and Description |
|---|---|
void |
commit() |
boolean |
delistResource(XAResource xaRes,
int flag) |
boolean |
enlistResource(XAResource xaRes) |
boolean |
equals(Object obj) |
URI |
getLocation()
Get the location of this remote transaction.
|
<T> T |
getProviderInterface(Class<T> providerInterfaceType)
Get a provider-specific interface from this transaction.
|
Object |
getResource(Object key) |
int |
getStatus() |
int |
getTransactionTimeout()
Get the transaction timeout that was in force when the transaction began.
|
int |
hashCode() |
void |
putResource(Object key,
Object value) |
Object |
putResourceIfAbsent(Object key,
Object value) |
void |
registerSynchronization(Synchronization sync) |
void |
rollback() |
void |
setLocation(URI location)
Attempt to set the location of this transaction, binding it to a remote transport provider.
|
void |
setRollbackOnly() |
String |
toString() |
boolean |
tryClearLocation()
Attempt to clear the location set on this transaction, disassociating it
with the remote transport provider.
|
getEstimatedRemainingTime, performAction, performConsumer, performConsumer, performConsumer, performFunction, performFunction, performSupplier, performToIntFunction, performToIntFunction, registerAssociationListenerpublic Object getResource(Object key) throws NullPointerException
getResource in class AbstractTransactionNullPointerExceptionpublic void putResource(Object key, Object value) throws NullPointerException
putResource in class AbstractTransactionNullPointerExceptionpublic Object putResourceIfAbsent(Object key, Object value) throws IllegalArgumentException
putResourceIfAbsent in class AbstractTransactionIllegalArgumentExceptionpublic int getTransactionTimeout()
AbstractTransactiongetTransactionTimeout in class AbstractTransactionpublic <T> T getProviderInterface(Class<T> providerInterfaceType)
AbstractTransactiongetProviderInterface in class AbstractTransactionT - the provider interface typeproviderInterfaceType - the provider interface type class (must not be null)null if the given type isn't supported by this transaction's providerpublic void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
SystemException
commit in interface Transactioncommit in class AbstractTransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SystemException
rollback in interface Transactionrollback in class AbstractTransactionIllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionsetRollbackOnly in class AbstractTransactionIllegalStateExceptionSystemExceptionpublic int getStatus()
public boolean enlistResource(XAResource xaRes)
public boolean delistResource(XAResource xaRes, int flag)
public void registerSynchronization(Synchronization sync) throws RollbackException, IllegalStateException, SystemException
public URI getLocation()
null if it has no location as of yetpublic void setLocation(URI location) throws IllegalArgumentException, IllegalStateException, SystemException
location - the location to set (must not be null)IllegalArgumentException - if there is no provider for the given location (or it is null), or the
security context was invalidIllegalStateException - if the transaction is in an invalid state for setting its locationSystemException - if the transport could not begin the transactionpublic boolean tryClearLocation()
Copyright © 2020 JBoss by Red Hat. All rights reserved.