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.
|
default PhysicalConnectionHandlingMode |
getConnectionHandlingMode()
Deprecated.
(since 5.2) access via
getLogicalConnection() instead |
default ConnectionReleaseMode |
getConnectionReleaseMode()
Deprecated.
(since 5.2) use
PhysicalConnectionHandlingMode via getLogicalConnection() instead |
LogicalConnectionImplementor |
getLogicalConnection()
Retrieves the logical connection associated with this JDBC coordinator.
|
default ResourceRegistry |
getResourceRegistry()
Deprecated.
(since 5.2) access via
getLogicalConnection() instead |
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.
|
void |
serialize(ObjectOutputStream objectOutputStream) |
afterTransactionBegin, afterTransactionCompletion, beforeTransactionCompletion, flushBeforeTransactionCompletion, getJdbcSessionOwner, isActive, setTransactionTimeOut, startTransactionBoundary
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.@Deprecated default ConnectionReleaseMode getConnectionReleaseMode()
PhysicalConnectionHandlingMode
via getLogicalConnection()
instead@Deprecated default PhysicalConnectionHandlingMode getConnectionHandlingMode()
getLogicalConnection()
instead@Deprecated default ResourceRegistry getResourceRegistry()
getLogicalConnection()
insteadvoid serialize(ObjectOutputStream objectOutputStream) throws IOException
IOException
Copyright © 2019 JBoss by Red Hat. All rights reserved.