static final boolean usePool=false;
public TcpWorkerThread(PoolTcpEndpoint endpoint) {
this.endpoint = endpoint;
if( usePool ) {
connectionCache = new SimplePool(endpoint.getMaxThreads());
for(int i = 0 ; i < endpoint.getMaxThreads()/2 ; i++) {
connectionCache.put(new TcpConnection());
}
}
}