Package oracle.jdbc.xa.client
Class OracleXAHeteroCloseCallback
- java.lang.Object
-
- oracle.jdbc.xa.client.OracleXAHeteroCloseCallback
-
- All Implemented Interfaces:
oracle.jdbc.driver.OracleCloseCallback
,oracle.jdbc.internal.Monitor
public class OracleXAHeteroCloseCallback extends Object implements oracle.jdbc.driver.OracleCloseCallback, oracle.jdbc.internal.Monitor
This class implements the OracleCloseCallback interface that is defined in oracle.jdbc.driver. It is used to close a physical connection to an RM instance, and unregister this RM instance from C-XA's current thread of control. An instance of this class should be registered with an OracleXAConnection/OraclePooledConnection, using the registerCloseCallback() method in the OraclePooledConnection class to function, like: ((OracleXAConnection) xaconn).registerCloseCallback( new OracleXAHeteroCloseCallback(), new SomeUserObject());
-
-
Constructor Summary
Constructors Constructor Description OracleXAHeteroCloseCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterClose(Object privData)
void
beforeClose(oracle.jdbc.internal.OracleConnection conn, Object obj)
protected void
debug(Logger logger, Level level, Executable method, String msg)
protected oracle.jdbc.internal.OracleConnection
getConnectionDuringExceptionHandling()
oracle.jdbc.internal.Monitor.CloseableLock
getMonitorLock()
-
-
-
Method Detail
-
beforeClose
public void beforeClose(oracle.jdbc.internal.OracleConnection conn, Object obj)
- Specified by:
beforeClose
in interfaceoracle.jdbc.driver.OracleCloseCallback
-
afterClose
public void afterClose(Object privData)
- Specified by:
afterClose
in interfaceoracle.jdbc.driver.OracleCloseCallback
-
getConnectionDuringExceptionHandling
protected oracle.jdbc.internal.OracleConnection getConnectionDuringExceptionHandling()
-
debug
protected void debug(Logger logger, Level level, Executable method, String msg)
-
getMonitorLock
public final oracle.jdbc.internal.Monitor.CloseableLock getMonitorLock()
- Specified by:
getMonitorLock
in interfaceoracle.jdbc.internal.Monitor
-
-