public class LastResourceRecord extends XAResourceRecord
_theXAResource, XACONNECTION
Constructor and Description |
---|
LastResourceRecord(TransactionImple tx,
XAResource xaResource,
Xid xid,
Object[] params)
Construct the record for last resource commit optimisation.
|
Modifier and Type | Method and Description |
---|---|
void |
commit()
Commit this resource.
|
Vote |
prepare()
Prepare this resource.
|
boolean |
saveRecord() |
boolean |
shouldAdd(OTSAbstractRecord record) |
int |
type_id()
The type id for this record.
|
String |
type()
The type for saving state.
|
String |
uid()
The UID for this resource.
|
alter, commit_one_phase, commit_subtransaction, forget, get_uid, getRecoveryCoordinator, getResource, getXid, merge, notAProblem, prepare_subtransaction, propagateOnAbort, propagateOnCommit, recover, restoreState, rollback_subtransaction, rollback, saveState, setRecoveryCoordinator, setXAResource, shouldAlter, shouldMerge, shouldReplace, toString, typeName
_all_interfaces, _invoke, _this, _this
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
public LastResourceRecord(TransactionImple tx, XAResource xaResource, Xid xid, Object[] params)
tx
- The current transaction.xaResource
- The associated XA resource.xid
- The X/Open transaction identifier.params
- Additional parameters.public int type_id() throws SystemException
type_id
in interface OTSAbstractRecordOperations
type_id
in class XAResourceRecord
SystemException
public String uid() throws SystemException
uid
in interface OTSAbstractRecordOperations
uid
in class XAResourceRecord
SystemException
public void commit() throws SystemException, NotPrepared, HeuristicRollback, HeuristicMixed, HeuristicHazard
commit
in interface ResourceOperations
commit
in class XAResourceRecord
SystemException
NotPrepared
HeuristicRollback
HeuristicMixed
HeuristicHazard
public Vote prepare() throws HeuristicMixed, HeuristicHazard, SystemException
prepare
in interface ResourceOperations
prepare
in class XAResourceRecord
HeuristicMixed
HeuristicHazard
SystemException
public String type()
type
in class XAResourceRecord
public boolean saveRecord() throws SystemException
saveRecord
in interface OTSAbstractRecordOperations
saveRecord
in class XAResourceRecord
SystemException
public boolean shouldAdd(OTSAbstractRecord record) throws SystemException
shouldAdd
in interface OTSAbstractRecordOperations
shouldAdd
in class XAResourceRecord
SystemException
Copyright © 2021 JBoss by Red Hat. All rights reserved.