tyrex.resource.jca

Class PoolEntry

final class PoolEntry extends Object

Represents an entry in the connection pool.

Version: $Revision: 1.1 $

Author: Assaf Arkin

Field Summary
protected boolean_available
True if this connection is available, false if currently in use.
protected int_hashCode
The hash code for this entry.
protected LocalTransaction_localTx
The local transaction associated with this connection.
protected ManagedConnection_managed
The pooled connection associated with this entry.
protected PoolEntry_nextEntry
Reference to the next connection entry in hash table.
protected long_timeStamp
The timestamp for a used connection returns the clock time at which the connection was made available to the application.
protected XAResource_xaResource
The XA resource associated with this connection.
Constructor Summary
protected PoolEntry(ManagedConnection managed, int hashCode, XAResource xaResource, LocalTransaction localTx)
Constructs a new pool entry.

Field Detail

_available

protected boolean _available
True if this connection is available, false if currently in use.

_hashCode

protected final int _hashCode
The hash code for this entry.

_localTx

protected final LocalTransaction _localTx
The local transaction associated with this connection. May be null.

_managed

protected final ManagedConnection _managed
The pooled connection associated with this entry.

_nextEntry

protected PoolEntry _nextEntry
Reference to the next connection entry in hash table.

_timeStamp

protected long _timeStamp
The timestamp for a used connection returns the clock time at which the connection was made available to the application. The timestamp for an unused connection returns the clock time at which the connection was placed in the pool.

_xaResource

protected final XAResource _xaResource
The XA resource associated with this connection. May be null.

Constructor Detail

PoolEntry

protected PoolEntry(ManagedConnection managed, int hashCode, XAResource xaResource, LocalTransaction localTx)
Constructs a new pool entry. A new pool entry is not available by default. The available variable must be set to false to make it available.

Parameters: managed The managed connection hashCode The managed connection hash code xaResource The XA resource interface, or null localTx The local transaction, or null user The user name or null password The password or null

Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.