org.infinispan.client.hotrod.impl.transport.tcp.RequestBalancingStrategy Maven / Gradle / Ivy
package org.infinispan.client.hotrod.impl.transport.tcp;
import java.net.SocketAddress;
import java.util.Collection;
/**
* Defines how request are distributed between the servers for replicated caches.
*
* @author [email protected]
* @deprecated Please extend {@link FailoverRequestBalancingStrategy} instead.
* @since 4.1
*/
@Deprecated
public interface RequestBalancingStrategy {
void setServers(Collection servers);
/**
* @deprecated This method will be removed.
* {@link org.infinispan.client.hotrod.impl.transport.tcp.FailoverRequestBalancingStrategy#nextServer(java.util.Set)} will replace it.
*/
@Deprecated
SocketAddress nextServer();
}