public interface RemoteTransactionPeer
| Modifier and Type | Method and Description |
|---|---|
SimpleTransactionControl |
begin(int timeout)
Establish a remote user-controlled transaction without local enlistment.
|
default <T> T |
getProviderInterface(Class<T> clazz)
Get the provider interface with the given type for this peer.
|
SubordinateTransactionControl |
lookupXid(Xid xid,
int remainingTimeout)
Look up an outflow handle for a remote transaction with the given XID.
|
Xid[] |
recover(int flag,
String parentName)
Acquire a list of all unresolved subordinate transactions from the location associated with this provider.
|
@NotNull SubordinateTransactionControl lookupXid(Xid xid, int remainingTimeout) throws XAException
xid - the transaction IDremainingTimeout - the remaining timeout of the transaction, in seconds (0 indicates that the default should be used)XAException - if the lookup failed for some reason@NotNull Xid[] recover(int flag, String parentName) throws XAException
flag - the recovery flagparentName - the parent node nameXAException - if an error occurs@NotNull SimpleTransactionControl begin(int timeout) throws SystemException
timeout - the transaction timeout to use, or 0 to use the remote system defaultnull)SystemException - if an unexpected error occursdefault <T> T getProviderInterface(Class<T> clazz)
T - the provider interface typeclazz - the provider interface type class (must not be null)null if no such interface is supportedCopyright © 2017 JBoss by Red Hat. All rights reserved.