Class IpResponseTable
java.lang.Object
org.eblocker.server.common.network.IpResponseTable
This table stores the last time a hardware address has responded to a specific IP address
(via ARP response or Neighbor Advertisement).
Listeners can be notified if the latest timestamp for a specific hardware address has been
updated. They are not notified more frequently than once per minute.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactiveAddressesSince(String hardwareAddress, long millis) Returns all IP addresses of a given hardware address that have been active since a given timestamp.booleanactiveSince(String hardwareAddress, long millis) voidallActiveSince(long millis) Collects all hardware addresses that have active IP addresses since a given timestampbooleanbooleanisEmpty()latestTimestamp(String hardwareAddress) voidvoidvoidremoveAll(String hardwareAddress, Collection<IpAddress> ipAddresses) toString()
-
Constructor Details
-
IpResponseTable
public IpResponseTable()
-
-
Method Details
-
get
-
isEmpty
public boolean isEmpty() -
put
-
activeSince
-
latestTimestamp
-
allActiveSince
Collects all hardware addresses that have active IP addresses since a given timestamp- Parameters:
millis- timestamp- Returns:
- set of active hardware addresses
-
activeAddressesSince
Returns all IP addresses of a given hardware address that have been active since a given timestamp.- Parameters:
hardwareAddress-millis- timestamp- Returns:
- set of active IP addresses or null if the hardware address does not exist.
-
removeAll
-
contains
-
remove
-
toString
-
addLatestTimestampUpdateListener
public void addLatestTimestampUpdateListener(IpResponseTable.LatestTimestampUpdateListener listener)
-