com.cometway.props
Class AbstractPropsPoolAgent.PropsPoolImpl

java.lang.Object
  extended by com.cometway.props.AbstractPropsPoolAgent.PropsPoolImpl
Enclosing class:
AbstractPropsPoolAgent

public class AbstractPropsPoolAgent.PropsPoolImpl
extends java.lang.Object


Constructor Summary
AbstractPropsPoolAgent.PropsPoolImpl()
           
 
Method Summary
 void returnProps(Props p, java.lang.Object o)
          Returns a Props to the pool based on the specified Object parameter.
 Props takeProps(java.lang.Object o)
          Takes a Props from the pool based on the specified Object parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPropsPoolAgent.PropsPoolImpl

public AbstractPropsPoolAgent.PropsPoolImpl()
Method Detail

takeProps

public Props takeProps(java.lang.Object o)
Takes a Props from the pool based on the specified Object parameter. Passing null *may* return a default value.


returnProps

public void returnProps(Props p,
                        java.lang.Object o)
Returns a Props to the pool based on the specified Object parameter. A Props that is not returned to the pool may never be reused.