|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jolsrv2.repository.processforward.ProcessedSet
public final class ProcessedSet
The class implements the processed set, as specified in OLSRv2.
Constructor Summary | |
---|---|
ProcessedSet()
Constructor |
Method Summary | |
---|---|
void |
addTuple(MessageTypes type,
java.net.InetAddress address,
int sequenceNumber,
long time)
Adds a tuple to the processed set |
java.lang.Object |
clone()
Implementation of the singleton design pattern. |
boolean |
contains(MessageTypes type,
java.net.InetAddress address,
int sequenceNumber)
Checks if the processed set contains a processed tuple with a certain message type, IP address and sequence number |
static ProcessedSet |
getProcessedSet()
Implementation of the singleton design pattern |
void |
purge()
The method purges the processed set, deleting expired entries |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProcessedSet()
Method Detail |
---|
public static ProcessedSet getProcessedSet()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean contains(MessageTypes type, java.net.InetAddress address, int sequenceNumber)
type
- the message typeaddress
- the IP addresssequenceNumber
- the sequence number
public void addTuple(MessageTypes type, java.net.InetAddress address, int sequenceNumber, long time)
type
- the message typeaddress
- the IP addresssequenceNumber
- the sequence numbertime
- the timepublic void purge()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |