Constructor and Description |
---|
MetaData()
Creates a new
MetaData instance with creation time now. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getCreateTime()
Returns a time stamp that is automatically filled with the time the event
instance was created by the language binding.
|
long |
getDeliverTime()
Returns the time at which an event was decoded and will be dispatched to
the client as soon as possible (set directly before passing it to the
client handler).
|
long |
getReceiveTime()
Returns the time at which an event is received by listener in its encoded
form.
|
long |
getSendTime()
Returns the time at which the generated notification for an event was
sent on the bus (after serialization).
|
String |
getUserInfo(String key)
Returns the user-defined string for the given key.
|
long |
getUserTime(String key)
Returns the user timestamp stored under the provided key.
|
int |
hashCode() |
boolean |
hasUserInfo(String key)
Checks whether a user info exists under the provided key.
|
boolean |
hasUserTime(String key)
Checks whether a user-provided timestamp with the given key exists.
|
void |
setCreateTime(long time)
Sets the time stamp that is automatically filled with the time the event
instance was created by the language binding.
|
void |
setDeliverTime(long time)
Sets the time at which an event was decoded and will be dispatched to the
client as soon as possible (set directly before passing it to the client
handler).
|
void |
setReceiveTime(long time)
Sets the time at which an event is received by listener in its encoded
form.
|
void |
setSendTime(long time)
Sets the time at which the generated notification for an event was sent
on the bus (after serialization).
|
void |
setUserInfo(String key,
String value)
Sets a user info with the specified key and value or replaces and already
existing one.
|
void |
setUserTime(String key,
long time)
Sets a user timestamp and replaces existing entries.
|
String |
toString() |
Set<String> |
userInfoKeys()
Returns all keys of user-defined infos.
|
Set<String> |
userTimeKeys()
Returns the keys of all available user times.
|
public MetaData()
MetaData
instance with creation time now.public long getCreateTime()
public void setCreateTime(long time)
time
- timestamp in microseconds or 0 to use current system timepublic long getSendTime()
public void setSendTime(long time)
time
- timestamp in microseconds or 0 to use current system timepublic long getReceiveTime()
public void setReceiveTime(long time)
time
- timestamp in microseconds or 0 to use current system timepublic long getDeliverTime()
public void setDeliverTime(long time)
time
- timestamp in microseconds or 0 to use current system timepublic Set<String> userTimeKeys()
public boolean hasUserTime(String key)
key
- the key to checktrue
if a timestamp for the given key exists, else
false
public long getUserTime(String key)
key
- key of the user-provided timestampIllegalArgumentException
- no timestamp stored und the provided keypublic void setUserTime(String key, long time)
key
- the key for the timestamptime
- time in microseconds or 0 to use current system timepublic Set<String> userInfoKeys()
public boolean hasUserInfo(String key)
key
- key to checktrue
if an info for the key is defined, else
false
public String getUserInfo(String key)
key
- key to look upIllegalArgumentException
- no info set for the specified keypublic void setUserInfo(String key, String value)
key
- the key to setvalue
- the user valueCopyright © 2018 CoR-Lab. All rights reserved.