Package org.activecomponents.udp
Class IdReplayTracker
- java.lang.Object
- 
- org.activecomponents.udp.IdReplayTracker
 
- 
 public class IdReplayTracker extends java.lang.ObjectClass for monitoring incoming IDs and identifying replays.
- 
- 
Field SummaryFields Modifier and Type Field Description protected longidlowerboundID lower bound, no ID is valid at or below this value.protected intidtimeoutTimeout for missing IDs.protected longidupperboundID upper bound, the highest ID checked.protected java.util.Map<java.lang.Long,java.lang.Long>missingIdsIDs not checked yet between upper and lower bound.protected longnextidcleanupTimestamp for the next cleanup of the missing ID map.
 - 
Constructor SummaryConstructors Constructor Description IdReplayTracker()IdReplayTracker(long startid, int idtimeout)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisReplay(long id)Checks if an ID is a replay value, otherwise registers it.
 
- 
- 
- 
Field Detail- 
idlowerboundprotected long idlowerbound ID lower bound, no ID is valid at or below this value.
 - 
idupperboundprotected long idupperbound ID upper bound, the highest ID checked.
 - 
nextidcleanupprotected long nextidcleanup Timestamp for the next cleanup of the missing ID map.
 - 
idtimeoutprotected int idtimeout Timeout for missing IDs.
 - 
missingIdsprotected java.util.Map<java.lang.Long,java.lang.Long> missingIds IDs not checked yet between upper and lower bound. Missing ID -> Timestamp of last packet.
 
- 
 
-