public class TransportContext extends MadaraJNI
Modifier and Type | Method and Description |
---|---|
void |
addRecord(java.lang.String key,
KnowledgeRecord record)
Adds a record to the list that should be appended to send or rebroadcast.
|
void |
clearRecords()
Clears records added through filtering operations.
|
static TransportContext |
fromPointer(long cptr) |
long |
getCurrentTime()
Gets the current timestamp
|
java.lang.String |
getDomain()
Gets the current network domain
|
long |
getMessageTime()
Gets the message timestamp
|
long |
getOperation()
Get operation that the context is performing
|
java.lang.String |
getOriginator()
Returns the current message originator
|
long |
getReceiveBandwidth()
Gets the receive bandwidth in bytes per second
|
long |
getSendBandwidth()
Gets the send/rebroadcast bandwidth in bytes per second
|
public static TransportContext fromPointer(long cptr)
public void addRecord(java.lang.String key, KnowledgeRecord record)
key
- key of the record to addrecord
- the record to addpublic void clearRecords()
public long getCurrentTime()
public java.lang.String getDomain()
public long getMessageTime()
public long getOperation()
public java.lang.String getOriginator()
public long getReceiveBandwidth()
public long getSendBandwidth()