Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.net.proxy
Interface ProxyServiceLoadBalancer

All Known Implementing Classes:
AbstractProxyServiceLoadBalancer, DefaultProxyServiceLoadBalancer

public interface ProxyServiceLoadBalancer

A ProxyServiceLoadBalancer is a pluggable strategy for controlling the client load across individual members of a clustered ProxyService.

Since:
Coherence 3.7
Author:
jh 2010.12.07

Method Summary
 java.util.List getMemberList(Member client)
          Called by the ProxyService when a new client connects to obtain an ordered list of Members to which the new client should be redirected.
 void init(ProxyService service)
          Called by the ProxyService exactly once on this object as part of its initialization.
 void update(Member member, ProxyServiceLoad load)
          Update the load balancing strategy in response to a change in a ProxyService utilization.

 

Method Detail

init

void init(ProxyService service)
Called by the ProxyService exactly once on this object as part of its initialization.
Parameters:
service - the containing ProxyService

update

void update(Member member,
            ProxyServiceLoad load)
Update the load balancing strategy in response to a change in a ProxyService utilization.
Parameters:
member - the Member for which the utilization changed
load - the updated ProxyServiceLoad; if null, the utilization for the specified Member is unknown (e.g. when the ProxyService on the specified Member leaves the cluster)

getMemberList

java.util.List getMemberList(Member client)
Called by the ProxyService when a new client connects to obtain an ordered list of Members to which the new client should be redirected. If the returned list is null, empty, or contains a single Member that is the "local" Member, the client will remain connected to the calling ProxyService.
Parameters:
client - the Member object that represents the remote client
Returns:
the ordered list of Member objects to which the client should be redirected

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.