| org.enhydra.jdbc.standard.StandardDataSource org.enhydra.jdbc.standard.StandardConnectionPoolDataSource org.enhydra.jdbc.standard.StandardXADataSource
All known Subclasses: org.enhydra.jdbc.instantdb.IdbXADataSource, org.enhydra.jdbc.informix.InformixXADataSource, org.enhydra.jdbc.sybase.SybaseXADataSource, org.enhydra.jdbc.oracle.OracleXADataSource,
DEFAULT_DEADLOCKMAXWAIT | final public static long DEFAULT_DEADLOCKMAXWAIT(Code) | | |
DEFAULT_DEADLOCKRETRYWAIT | final public static int DEFAULT_DEADLOCKRETRYWAIT(Code) | | |
DEFAULT_MAX_CON | final public static int DEFAULT_MAX_CON(Code) | | |
DEFAULT_MIN_CON | final public static int DEFAULT_MIN_CON(Code) | | |
connectionCount | public int connectionCount(Code) | | |
deadLockMaxWait | public long deadLockMaxWait(Code) | | |
deadLockRetryWait | public long deadLockRetryWait(Code) | | |
transactionManager | public transient TransactionManager transactionManager(Code) | | |
StandardXADataSource | public StandardXADataSource()(Code) | | Constructor
|
checkTimeouts | synchronized long checkTimeouts(long curTime) throws SQLException(Code) | | Invoked by the timer thread to check all transactions
for timeouts. Returns the time of the next timeout event
after current timeouts have expired.
|
closeFreeConnection | public void closeFreeConnection()(Code) | | |
connectionClosed | synchronized void connectionClosed() throws SQLException(Code) | | Called when an XA connection gets closed. When they have all
been closed then any remaining physical connections are also
closed.
|
freeConnection | public synchronized void freeConnection(Xid id, boolean placeAtStart)(Code) | | Frees a connection to make it eligible for reuse. The free list
is normally a last in, first out list (LIFO). This is efficient.
However, timed out connections are nice to hang onto for error
reporting, so they can be placed at the start. This is less
efficient, but hopefully is a rare occurence.
Here, no need to verify the number of connections, we remove an
object from the xidConnections to put it in th freeConnections
|
getAllConnections | public int getAllConnections()(Code) | | |
getConnectionCount | public int getConnectionCount()(Code) | | |
getDeadLockMaxWait | public long getDeadLockMaxWait()(Code) | | |
getDeadLockRetryWait | public long getDeadLockRetryWait()(Code) | | |
getFreeConnection | synchronized StandardXAStatefulConnection getFreeConnection() throws SQLException(Code) | | Returns a connection from the free list, removing it
in the process. If none area available then a new
connection is created.
|
getMaxCon | public int getMaxCon()(Code) | | |
getMinCon | public int getMinCon()(Code) | | |
getTransactionManager | public TransactionManager getTransactionManager()(Code) | | |
getXidCount | public int getXidCount()(Code) | | Returns the number of connections that are either
prepared or heuristically completed.
|
processToWait | public synchronized void processToWait() throws Exception(Code) | | |
recover | Xid[] recover()(Code) | | Constructs a list of all prepared connections' xids.
|
setDeadLockMaxWait | public void setDeadLockMaxWait(long deadLock)(Code) | | |
setDeadLockRetryWait | public void setDeadLockRetryWait(long deadLockRetryWait)(Code) | | |
setMaxCon | public void setMaxCon(int max)(Code) | | |
setMinCon | public void setMinCon(int min)(Code) | | |
setTransactionManager | public void setTransactionManager(TransactionManager tm)(Code) | | |
setTransactionManagerName | public void setTransactionManagerName(String tmName)(Code) | | |
Fields inherited from org.enhydra.jdbc.standard.StandardConnectionPoolDataSource | final public static int DEFAULT_PREPAREDSTMTCACHESIZE(Code)(Java Doc) int preparedStmtCacheSize(Code)(Java Doc)
|
|
|