org.infinispan.client.hotrod.impl.transport.tcp
Interface RequestBalancingStrategy
- All Known Implementing Classes:
- RoundRobinBalancingStrategy
@ThreadSafe
public interface RequestBalancingStrategy
Defines how request are distributed between the servers for replicated caches. This class must be thread safe: setServer
and nextServer are called from multiple threads.
- Since:
- 4.1
- Author:
- Mircea.Markus@jboss.com
setServers
void setServers(Collection<InetSocketAddress> servers)
nextServer
InetSocketAddress nextServer()
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.