Class QOSRegistry

java.lang.Object
org.distributeme.core.qos.QOSRegistry

public final class QOSRegistry extends Object
Quality of Service registry contains references to all active outgoing calls and blacklisted service ids.
Since:
20.02.15 17:29
Version:
$Id: $Id
Author:
lrosenberg
  • Method Details

    • getInstance

      public static QOSRegistry getInstance()
      Returns the singleton instance.
      Returns:
      a QOSRegistry object.
    • callStarted

      public boolean callStarted(String serviceId, String callId)
      Called before a call is executed. Returns if the call may be executed.
      Parameters:
      serviceId - a String object.
      callId - a String object.
      Returns:
      true if the call should be executed, false if the target service is blacklisted.
    • callFinished

      public void callFinished(String serviceId, String callId)
      Called when a call has returned.
      Parameters:
      serviceId - a String object.
      callId - a String object.