public class TransactionServerImpl extends Object implements TransactionService
Modifier and Type | Class and Description |
---|---|
protected static class |
TransactionServerImpl.TransactionMapping |
Modifier and Type | Field and Description |
---|---|
protected TransactionManager |
transactionManager |
protected TransactionServerImpl.TransactionMapping |
transactions |
Constructor and Description |
---|
TransactionServerImpl() |
Modifier and Type | Method and Description |
---|---|
TransactionContext |
begin(String threadId)
Local Transaction
|
void |
begin(TransactionContext context)
Request level transaction
|
void |
cancelTransactions(String threadId,
boolean requestOnly) |
void |
commit(String threadId)
Local Transaction
|
void |
commit(String threadId,
XidImpl xid,
boolean onePhase,
boolean singleTM)
Global Transaction
|
void |
commit(TransactionContext context)
Request level transaction
|
void |
end(String threadId,
XidImpl xid,
int flags,
boolean singleTM)
Global Transaction
|
void |
forget(String threadId,
XidImpl xid,
boolean singleTM)
Global Transaction
|
TransactionContext |
getOrCreateTransactionContext(String threadId) |
Collection<TransactionMetadata> |
getTransactions() |
boolean |
isDetectTransactions() |
int |
prepare(String threadId,
XidImpl xid,
boolean singleTM)
Global Transaction
|
Xid[] |
recover(int flag,
boolean singleTM)
Global Transaction
|
void |
resume(TransactionContext context) |
void |
rollback(String threadId)
Local Transaction
|
void |
rollback(String threadId,
XidImpl xid,
boolean singleTM)
Global Transaction
|
void |
rollback(TransactionContext context)
Request level transaction
|
void |
setDetectTransactions(boolean detectTransactions) |
void |
setTransactionManager(TransactionManager transactionManager) |
void |
setXaImporter(XAImporter xaImporter) |
void |
start(String threadId,
XidImpl xid,
int flags,
int timeout,
boolean singleTM)
Global Transaction
|
void |
suspend(TransactionContext context) |
void |
terminateTransaction(String threadId) |
protected TransactionServerImpl.TransactionMapping transactions
protected TransactionManager transactionManager
public void setDetectTransactions(boolean detectTransactions)
public boolean isDetectTransactions()
public void setXaImporter(XAImporter xaImporter)
public void setTransactionManager(TransactionManager transactionManager)
public int prepare(String threadId, XidImpl xid, boolean singleTM) throws XATransactionException
prepare
in interface TransactionService
XATransactionException
public void commit(String threadId, XidImpl xid, boolean onePhase, boolean singleTM) throws XATransactionException
commit
in interface TransactionService
XATransactionException
public void rollback(String threadId, XidImpl xid, boolean singleTM) throws XATransactionException
rollback
in interface TransactionService
XATransactionException
public Xid[] recover(int flag, boolean singleTM) throws XATransactionException
recover
in interface TransactionService
XATransactionException
public void forget(String threadId, XidImpl xid, boolean singleTM) throws XATransactionException
forget
in interface TransactionService
XATransactionException
public void start(String threadId, XidImpl xid, int flags, int timeout, boolean singleTM) throws XATransactionException
start
in interface TransactionService
XATransactionException
public void end(String threadId, XidImpl xid, int flags, boolean singleTM) throws XATransactionException
end
in interface TransactionService
XATransactionException
public void suspend(TransactionContext context) throws XATransactionException
suspend
in interface TransactionService
XATransactionException
public void resume(TransactionContext context) throws XATransactionException
resume
in interface TransactionService
XATransactionException
public TransactionContext begin(String threadId) throws XATransactionException
begin
in interface TransactionService
XATransactionException
public void commit(String threadId) throws XATransactionException
commit
in interface TransactionService
XATransactionException
public void rollback(String threadId) throws XATransactionException
rollback
in interface TransactionService
XATransactionException
public TransactionContext getOrCreateTransactionContext(String threadId)
getOrCreateTransactionContext
in interface TransactionService
public void begin(TransactionContext context) throws XATransactionException
begin
in interface TransactionService
XATransactionException
public void commit(TransactionContext context) throws XATransactionException
commit
in interface TransactionService
XATransactionException
public void rollback(TransactionContext context) throws XATransactionException
rollback
in interface TransactionService
XATransactionException
public void cancelTransactions(String threadId, boolean requestOnly) throws XATransactionException
cancelTransactions
in interface TransactionService
XATransactionException
public Collection<TransactionMetadata> getTransactions()
getTransactions
in interface TransactionService
public void terminateTransaction(String threadId) throws AdminException
terminateTransaction
in interface TransactionService
AdminException
Copyright © 2019. All rights reserved.