Package org.distributeme.core.qos
Class QOSEntry
java.lang.Object
org.distributeme.core.qos.QOSEntry
A call entry for QOS.
- Since:
- 22.02.15 23:04
- Version:
- $Id: $Id
- Author:
- lrosenberg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGetter for the fieldblacklistedUntil.Getter for the fieldcallId.getKey()getKey.static StringgetKey.Getter for the fieldserviceId.longGetter for the fieldtimestamp.booleanIf blacklisted, true if the blacklist expiration timestamp has been reached?voidsetBlacklistedUntil(long l) Setter for the fieldblacklistedUntil.voidSetter for the fieldcallId.voidsetServiceId(String serviceId) Setter for the fieldserviceId.voidsetTimestamp(long timestamp) Setter for the fieldtimestamp.toString()
-
Constructor Details
-
QOSEntry
Creates a new QOSEntry.- Parameters:
aServiceId- the id of the service.aCallId- the unique id of the call.
-
-
Method Details
-
getCallId
Getter for the field
callId.- Returns:
- a
Stringobject.
-
setCallId
Setter for the field
callId.- Parameters:
callId- aStringobject.
-
getServiceId
Getter for the field
serviceId.- Returns:
- a
Stringobject.
-
setServiceId
Setter for the field
serviceId.- Parameters:
serviceId- aStringobject.
-
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
getKey.
- Returns:
- a
Stringobject.
-
getKey
getKey.
-
toString
-
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.
-