com.alibaba.otter.shared.communication.core.impl.connection
类 CommunicationConnectionPoolableFactory

java.lang.Object
  继承者 com.alibaba.otter.shared.communication.core.impl.connection.CommunicationConnectionPoolableFactory
所有已实现的接口:
org.apache.commons.pool.KeyedPoolableObjectFactory

public class CommunicationConnectionPoolableFactory
extends Object
implements org.apache.commons.pool.KeyedPoolableObjectFactory

链接池内容管理工厂, @see GenericObjectPool , PoolableObjectFactory

作者:
jianghang 2011-9-9 下午05:00:15

构造方法摘要
CommunicationConnectionPoolableFactory(CommunicationConnectionFactory factory)
           
 
方法摘要
 void activateObject(Object key, Object obj)
           
 void destroyObject(Object key, Object obj)
           
 Object makeObject(Object key)
           
 void passivateObject(Object key, Object obj)
           
 boolean validateObject(Object key, Object obj)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

CommunicationConnectionPoolableFactory

public CommunicationConnectionPoolableFactory(CommunicationConnectionFactory factory)
方法详细信息

destroyObject

public void destroyObject(Object key,
                          Object obj)
                   throws Exception
指定者:
接口 org.apache.commons.pool.KeyedPoolableObjectFactory 中的 destroyObject
抛出:
Exception

makeObject

public Object makeObject(Object key)
                  throws Exception
指定者:
接口 org.apache.commons.pool.KeyedPoolableObjectFactory 中的 makeObject
抛出:
Exception

passivateObject

public void passivateObject(Object key,
                            Object obj)
                     throws Exception
指定者:
接口 org.apache.commons.pool.KeyedPoolableObjectFactory 中的 passivateObject
抛出:
Exception

activateObject

public void activateObject(Object key,
                           Object obj)
                    throws Exception
指定者:
接口 org.apache.commons.pool.KeyedPoolableObjectFactory 中的 activateObject
抛出:
Exception

validateObject

public boolean validateObject(Object key,
                              Object obj)
指定者:
接口 org.apache.commons.pool.KeyedPoolableObjectFactory 中的 validateObject


Copyright © 2011–2013 alibaba. All rights reserved.