Package com.usatiuk.kleppmanntree
Interface PeerTimestampLogInterface<TimestampT extends Comparable<TimestampT>,PeerIdT extends Comparable<PeerIdT>>
- Type Parameters:
TimestampT
-PeerIdT
-
public interface PeerTimestampLogInterface<TimestampT extends Comparable<TimestampT>,PeerIdT extends Comparable<PeerIdT>>
Interface providing a map of newest received timestamps for each peer. (causality thresholds)
If a peer has some timestamp recorded in this map,
it means that all messages coming from this peer will have a newer timestamp.
-
Method Summary
Modifier and TypeMethodDescriptiongetForPeer
(PeerIdT peerId) Get the timestamp for a specific peer.void
putForPeer
(PeerIdT peerId, TimestampT timestamp) Get the timestamp for the current peer.
-
Method Details
-
getForPeer
Get the timestamp for a specific peer.- Parameters:
peerId
- the ID of the peer- Returns:
- the timestamp for the peer
-
putForPeer
Get the timestamp for the current peer.
-