public class BridgeWrapper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SUBORDINATE_TX_TYPE_AT_AT
the standard type string used to identify AT AT subordinate transactions.
|
Modifier and Type | Method and Description |
---|---|
void |
commit()
perform a phase 2 commit for the bridged-to transaction
|
void |
commitVolatile()
initiate synchronization afterCompletion processing for the bridged-to transaction following a
successful commit
|
static BridgeWrapper |
create(String subordinateType,
long expires,
boolean isSecure)
create an AT 1.1 subordinate transaction, associate it with the AT 1.1.
|
TxContext |
getContext()
obtain a resumable transaction context for the bridged-to transaction
|
String |
getIdentifier()
obtain the identifier for the bridged-to transaction
|
String |
getSubordinateType()
obtain the subordinate type for the bridged-to transaction
|
int |
prepare()
prepare the bridged-to transaction
|
boolean |
prepareVolatile()
initiate synchronization beforeCompletion processing for the bridged-to transaction
|
static BridgeWrapper |
recover(String identifier)
recreate a wrapper for a bridged-to WS-AT 1.1 transaction recovered from the log
|
void |
rollback()
rollback the bridged-to transaction
|
void |
rollbackVolatile()
initiate synchronization afterCompletion processing for the bridged-to transaction following a
rollback
|
static BridgeWrapper[] |
scan(String subordinateType)
return a list of bridge wrappers for all recovered subordinate transactions with a given
subordinate type
|
public static final String SUBORDINATE_TX_TYPE_AT_AT
public static BridgeWrapper create(String subordinateType, long expires, boolean isSecure)
subordinateType
- a unique string which groups subordinates for the benefit of their parent
tx/app and allows them to be identified and retrieved as a group during recovery. this must differ
from the string SUBORDINATE_TX_TYPE_AT_AT
expires
- the timeout for the bridged-to transaction or 0 if no timeout is requiredisSecure
- true if AT 1.1. protocol messages for the bridged-to transaction should employ
secure communications, otherwise falseSystemException
public static BridgeWrapper recover(String identifier) throws UnknownTransactionException
identifier
- the identifier of a previously created bridged-to transactionUnknownTransactionException
- if recovery has been performed and no transaction with the
given identifier has been found in the logpublic static BridgeWrapper[] scan(String subordinateType)
subordinateType
- the subordinate type supplied in the original bridge wrapper create call
which created the subordinate transaction.public String getIdentifier()
public TxContext getContext() throws UnknownTransactionException
UnknownTransactionException
- if this transaction has been recovered from the log and hence
has no associated transaction context.public String getSubordinateType()
public boolean prepareVolatile()
public int prepare()
public void commitVolatile()
public void commit()
public void rollbackVolatile()
public void rollback()
Copyright © 2017 JBoss by Red Hat. All rights reserved.