@ThreadSafe public class TcpTransportFactory extends Object implements TransportFactory
| Constructor and Description |
|---|
TcpTransportFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
RequestBalancingStrategy |
getBalancer()
Note that the returned
RequestBalancingStrategy may not be thread-safe. |
org.apache.commons.pool.impl.GenericKeyedObjectPool |
getConnectionPool() |
int |
getConnectTimeout() |
ConsistentHash |
getConsistentHash()
Note that the returned
ConsistentHash may not be thread-safe. |
ConsistentHashFactory |
getConsistentHashFactory() |
Collection<SocketAddress> |
getServers() |
int |
getSoTimeout() |
Transport |
getTransport() |
Transport |
getTransport(byte[] key) |
int |
getTransportCount() |
boolean |
isTcpNoDelay() |
void |
releaseTransport(Transport transport) |
void |
start(Codec codec,
ConfigurationProperties cfg,
Collection<SocketAddress> staticConfiguredServers,
AtomicInteger topologyId,
ClassLoader classLoader) |
void |
updateHashFunction(Map<SocketAddress,Set<Integer>> servers2Hash,
int numKeyOwners,
short hashFunctionVersion,
int hashSpace) |
void |
updateServers(Collection<SocketAddress> newServers) |
public void start(Codec codec, ConfigurationProperties cfg, Collection<SocketAddress> staticConfiguredServers, AtomicInteger topologyId, ClassLoader classLoader)
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 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 RequestBalancingStrategy getBalancer()
RequestBalancingStrategy may not be thread-safe.public org.apache.commons.pool.impl.GenericKeyedObjectPool getConnectionPool()
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.