net.spy.pool
Class SNPPPoolAble

java.lang.Object
  extended by net.spy.SpyObject
      extended by net.spy.pool.PoolAble
          extended by net.spy.pool.SNPPPoolAble

public class SNPPPoolAble
extends PoolAble

PoolAble object for containing a SNPP object.


Field Summary
 
Fields inherited from class net.spy.pool.PoolAble
MAY_CLEAN, MUST_CLEAN
 
Constructor Summary
SNPPPoolAble(Object theObject, int poolHash)
          Get an instance of SNPPPoolAble.
SNPPPoolAble(Object theObject, long maxAge, int poolHash)
          Get an instance of SNPPPoolAble.
 
Method Summary
 void discard()
          Discard the object.
 boolean isAlive()
          Find out of the SNPPPoolAble represents a usable object.
 
Methods inherited from class net.spy.pool.PoolAble
activate, checkIn, checkOut, debug, getObject, getObjectID, intGetObject, isAvailable, isCheckedOut, pruneStatus, setAvailable, setMaxAge, setObjectID, setPoolName, setUnavailable, toString
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SNPPPoolAble

public SNPPPoolAble(Object theObject,
                    int poolHash)
Get an instance of SNPPPoolAble.


SNPPPoolAble

public SNPPPoolAble(Object theObject,
                    long maxAge,
                    int poolHash)
Get an instance of SNPPPoolAble.

Method Detail

discard

public void discard()
Description copied from class: PoolAble
Discard the object. Anything that extends from this class needs to call super.discard() when it's done.

Overrides:
discard in class PoolAble
See Also:
PoolAble

isAlive

public boolean isAlive()
Find out of the SNPPPoolAble represents a usable object. This is done via an SNPP reset.

Overrides:
isAlive in class PoolAble
Returns:
true if the object will be usable


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.