net.oschina.thrift.client.support.pool.TClientPooledObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of thrift-client-support Show documentation
Show all versions of thrift-client-support Show documentation
thrift-client-support is an sdk for easy use thrift connect to the thrift server.
package net.oschina.thrift.client.support.pool;
import org.apache.commons.pool2.impl.DefaultPooledObject;
import org.apache.thrift.TServiceClient;
import org.apache.thrift.transport.TTransport;
/**
* @author dw_xiajiqiu1
* @time 2017/6/19 9:24
*/
public class TClientPooledObject extends DefaultPooledObject {
private TTransport targetTransport;
/**
* Create a new instance that wraps the provided object so that the pool can
* track the state of the pooled object.
*
* @param object The object to wrap
*/
public TClientPooledObject(TServiceClient object) {
super(object);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy