org.ow2.petals.transport.platform.nio.client
Class NioClientAgentPoolObjectFactory

java.lang.Object
  extended by org.apache.commons.pool.BaseKeyedPoolableObjectFactory
      extended by org.ow2.petals.transport.platform.nio.client.NioClientAgentPoolObjectFactory
All Implemented Interfaces:
org.apache.commons.pool.KeyedPoolableObjectFactory

public class NioClientAgentPoolObjectFactory
extends org.apache.commons.pool.BaseKeyedPoolableObjectFactory

NIO Client factory.

Author:
Christophe DENEUX (Capgemini Sud)

Constructor Summary
NioClientAgentPoolObjectFactory(TopologyService topologyService, NioSelector selectorAgent, long connectionTimeout, java.util.logging.Logger logger)
           
 
Method Summary
 void destroyObject(java.lang.Object key, java.lang.Object obj)
           
 java.lang.Object makeObject(java.lang.Object key)
           
 boolean validateObject(java.lang.Object key, java.lang.Object obj)
           
 
Methods inherited from class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
activateObject, passivateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NioClientAgentPoolObjectFactory

public NioClientAgentPoolObjectFactory(TopologyService topologyService,
                                       NioSelector selectorAgent,
                                       long connectionTimeout,
                                       java.util.logging.Logger logger)
Method Detail

makeObject

public java.lang.Object makeObject(java.lang.Object key)
                            throws java.lang.Exception
Specified by:
makeObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Specified by:
makeObject in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
Throws:
java.lang.Exception

destroyObject

public void destroyObject(java.lang.Object key,
                          java.lang.Object obj)
                   throws java.lang.Exception
Specified by:
destroyObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Overrides:
destroyObject in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
Throws:
java.lang.Exception

validateObject

public boolean validateObject(java.lang.Object key,
                              java.lang.Object obj)
Specified by:
validateObject in interface org.apache.commons.pool.KeyedPoolableObjectFactory
Overrides:
validateObject in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.