public interface JdbcCoordinator extends Serializable, TransactionCoordinatorOwner, JdbcResourceTransactionAccess
Modifier and Type | Method and Description |
---|---|
void |
abortBatch()
Abort the currently managed batch (if any)
|
void |
afterStatementExecution()
Used to signify that a statement has completed execution which may
indicate that this logical connection need to perform an
aggressive release of its physical connection.
|
void |
afterTransaction()
Signals the end of transaction.
|
void |
cancelLastQuery()
Attempt to cancel the last query sent to the JDBC driver.
|
Connection |
close()
Close this coordinator and release and resources.
|
<T> T |
coordinateWork(WorkExecutorVisitable<T> work)
Perform the requested work handling exceptions, coordinating and handling return processing.
|
int |
determineRemainingTransactionTimeOutPeriod()
Calculate the amount of time, in seconds, still remaining before transaction timeout occurs.
|
void |
disableReleases()
Disable connection releases
|
void |
enableReleases()
Enable connection releases
|
void |
executeBatch()
Execute the currently managed batch (if any)
|
void |
flushBeginning()
Callback to let us know that a flush is beginning.
|
void |
flushEnding()
Callback to let us know that a flush is ending.
|
Batch |
getBatch(BatchKey key)
Get a batch instance.
|
ConnectionReleaseMode |
getConnectionReleaseMode()
The release mode under which this logical connection is operating.
|
LogicalConnectionImplementor |
getLogicalConnection()
Retrieves the logical connection associated with this JDBC coordinator.
|
ResourceRegistry |
getResourceRegistry() |
ResultSetReturn |
getResultSetReturn()
Obtain the resultset extractor associated with this JDBC coordinator.
|
StatementPreparer |
getStatementPreparer()
Obtain the statement preparer associated with this JDBC coordinator.
|
boolean |
isReadyForSerialization()
Can this coordinator be serialized?
|
void |
registerLastQuery(Statement statement)
Register a query statement as being able to be cancelled.
|
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, flushBeforeTransactionCompletion, getJdbcSessionOwner, isActive, setTransactionTimeOut
getResourceLocalTransaction
LogicalConnectionImplementor getLogicalConnection()
Batch getBatch(BatchKey key)
key
- The unique batch key.void executeBatch()
void abortBatch()
StatementPreparer getStatementPreparer()
ResultSetReturn getResultSetReturn()
void flushBeginning()
flushEnding()
void flushEnding()
Connection close()
Connection
associated with the managed logical connection
LogicalConnection.close()
void afterTransaction()
void afterStatementExecution()
<T> T coordinateWork(WorkExecutorVisitable<T> work)
T
- The result type.work
- The work to be performed.void cancelLastQuery()
int determineRemainingTransactionTimeOutPeriod()
TransactionException
- Indicates the time out period has already been exceeded.void enableReleases()
void disableReleases()
void registerLastQuery(Statement statement)
statement
- The cancel-able query statement.boolean isReadyForSerialization()
true
indicates the coordinator can be serialized.ConnectionReleaseMode getConnectionReleaseMode()
ResourceRegistry getResourceRegistry()
Copyright © 2017 JBoss by Red Hat. All rights reserved.