@ThreadSafe public class TcpTransportFactory extends Object implements TransportFactory
| Constructor and Description |
|---|
TcpTransportFactory() |
public void start(Codec codec, Configuration configuration, AtomicInteger topologyId)
start in interface TransportFactorypublic void destroy()
destroy in interface TransportFactorypublic void updateHashFunction(Map<SocketAddress,Set<Integer>> servers2Hash, int numKeyOwners, short hashFunctionVersion, int hashSpace)
updateHashFunction in interface TransportFactorypublic Transport getTransport()
getTransport in interface TransportFactorypublic Transport getTransport(byte[] key)
getTransport in interface TransportFactorypublic void releaseTransport(Transport transport)
releaseTransport in interface TransportFactorypublic void invalidateTransport(SocketAddress serverAddress, Transport transport)
invalidateTransport in interface TransportFactorypublic void updateServers(Collection<SocketAddress> newServers)
updateServers in interface TransportFactorypublic Collection<SocketAddress> getServers()
public ConsistentHash getConsistentHash()
ConsistentHash may not be thread-safe.public ConsistentHashFactory getConsistentHashFactory()
getConsistentHashFactory in interface TransportFactorypublic boolean isTcpNoDelay()
isTcpNoDelay in interface TransportFactorypublic int getTransportCount()
getTransportCount in interface TransportFactorypublic int getSoTimeout()
getSoTimeout in interface TransportFactorypublic int getConnectTimeout()
getConnectTimeout in interface TransportFactorypublic SSLContext getSSLContext()
getSSLContext in interface TransportFactorypublic RequestBalancingStrategy getBalancer()
RequestBalancingStrategy may not be thread-safe.public org.apache.commons.pool.impl.GenericKeyedObjectPool<SocketAddress,TcpTransport> getConnectionPool()
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.