org.firebirdsql.pool
Interface PooledObject

All Known Implementing Classes:
AbstractPingablePooledConnection, PingablePooledConnection

Deprecated.

@Deprecated
public interface PooledObject

Represents an object that can be stored in the pool.

Author:
Roman Rokytskyy

Field Summary
static long INSTANT_IN_USE
          Deprecated.  
 
Method Summary
 void deallocate()
          Deprecated. Deallocate this object.
 long getInstantInPool()
          Deprecated.  
 org.firebirdsql.pool.PooledConnectionQueue getOwningQueue()
          Deprecated.  
 boolean isInPool()
          Deprecated. Check whether this object is currently in pool or had been released to the application.
 boolean isValid()
          Deprecated. Check if this pooled object is still valid.
 void setInPool(boolean inPool)
          Deprecated. Set the "inPool" flag to this object.
 

Field Detail

INSTANT_IN_USE

static final long INSTANT_IN_USE
Deprecated. 
See Also:
Constant Field Values
Method Detail

deallocate

void deallocate()
Deprecated. 
Deallocate this object. This method deallocated the object and releases all associated resources. This method is invoked when object pool is shutdown and is needed to gracefully release resources.


isValid

boolean isValid()
Deprecated. 
Check if this pooled object is still valid.

Returns:
true when the object is valid.

isInPool

boolean isInPool()
Deprecated. 
Check whether this object is currently in pool or had been released to the application.

Returns:
true if the object is currently in pool.

setInPool

void setInPool(boolean inPool)
Deprecated. 
Set the "inPool" flag to this object. This method should be called only by the pool implementation.

Parameters:
inPool - true if object is in pool, otherwise false.

getInstantInPool

long getInstantInPool()
Deprecated. 
Returns:
The instant in time when this object was last used, or INSTANT_IN_USE when object is currently in use.

getOwningQueue

org.firebirdsql.pool.PooledConnectionQueue getOwningQueue()
Deprecated. 


Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.