Class QOSEntry

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

public class QOSEntry extends Object
A call entry for QOS.
Since:
22.02.15 23:04
Version:
$Id: $Id
Author:
lrosenberg
  • Constructor Details

    • QOSEntry

      public QOSEntry(String aServiceId, String aCallId)
      Creates a new QOSEntry.
      Parameters:
      aServiceId - the id of the service.
      aCallId - the unique id of the call.
  • Method Details

    • getCallId

      public String getCallId()

      Getter for the field callId.

      Returns:
      a String object.
    • setCallId

      public void setCallId(String callId)

      Setter for the field callId.

      Parameters:
      callId - a String object.
    • getServiceId

      public String getServiceId()

      Getter for the field serviceId.

      Returns:
      a String object.
    • setServiceId

      public void setServiceId(String serviceId)

      Setter for the field serviceId.

      Parameters:
      serviceId - a String object.
    • getTimestamp

      public long getTimestamp()

      Getter for the field timestamp.

      Returns:
      a long.
    • setTimestamp

      public void setTimestamp(long timestamp)

      Setter for the field timestamp.

      Parameters:
      timestamp - a long.
    • getKey

      public String getKey()

      getKey.

      Returns:
      a String object.
    • getKey

      public static String getKey(String serviceId, String callId)

      getKey.

      Parameters:
      serviceId - a String object.
      callId - a String object.
      Returns:
      a String object.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setBlacklistedUntil

      public void setBlacklistedUntil(long l)

      Setter for the field blacklistedUntil.

      Parameters:
      l - a long.
    • getBlacklistedUntil

      public long getBlacklistedUntil()

      Getter for the field blacklistedUntil.

      Returns:
      a long.
    • isBlacklistExpired

      public boolean isBlacklistExpired()
      If blacklisted, true if the blacklist expiration timestamp has been reached?
      Returns:
      a boolean.