tyrex.resource.jca
Class PoolEntry

java.lang.Object
  extended bytyrex.resource.jca.PoolEntry

final class PoolEntry
extends java.lang.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  javax.resource.spi.LocalTransaction _localTx
          The local transaction associated with this connection.
protected  javax.resource.spi.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  javax.transaction.xa.XAResource _xaResource
          The XA resource associated with this connection.
 
Constructor Summary
protected PoolEntry(javax.resource.spi.ManagedConnection managed, int hashCode, javax.transaction.xa.XAResource xaResource, javax.resource.spi.LocalTransaction localTx)
          Constructs a new pool entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_managed

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


_hashCode

protected final int _hashCode
The hash code for this entry.


_nextEntry

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


_available

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


_xaResource

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


_localTx

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


_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.

Constructor Detail

PoolEntry

protected PoolEntry(javax.resource.spi.ManagedConnection managed,
                    int hashCode,
                    javax.transaction.xa.XAResource xaResource,
                    javax.resource.spi.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


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.