com.multisoftgroup.jerry.webchat.managers.balancer
Class BalancedLoading

java.lang.Object
  extended by com.multisoftgroup.jerry.webchat.managers.balancer.OperatorBalancer
      extended by com.multisoftgroup.jerry.webchat.managers.balancer.BalancedLoading

public class BalancedLoading
extends OperatorBalancer

This operator load balancer allows to allot incoming requests equally to the account operators.

Author:
Pavel Savin

Constructor Summary
BalancedLoading()
           
 
Method Summary
 Operator nextAvailableOperator(JerryAccount account)
          The implementation of this method should return next available operator for the specified account.
 
Methods inherited from class com.multisoftgroup.jerry.webchat.managers.balancer.OperatorBalancer
getLoading, isOperatorAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BalancedLoading

public BalancedLoading()
Method Detail

nextAvailableOperator

public Operator nextAvailableOperator(JerryAccount account)
Description copied from class: OperatorBalancer
The implementation of this method should return next available operator for the specified account.

Specified by:
nextAvailableOperator in class OperatorBalancer
Parameters:
account - Jerry account in which the chat is created
Returns:
available operator