Package com.yahoo.config.provision
Interface HostLivenessTracker
-
public interface HostLivenessTracker
Instances of this are used to keep track of (notify and query) which hosts are currently connected to the config system.- Author:
- bratseth
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<java.time.Instant>
lastRequestFrom(java.lang.String hostname)
Returns the epoch timestamp of the last request received from the given hostname, or empty if there is no memory of this host making a requestvoid
receivedRequestFrom(java.lang.String hostname)
Called each time a config request is received from a client
-
-
-
Method Detail
-
receivedRequestFrom
void receivedRequestFrom(java.lang.String hostname)
Called each time a config request is received from a client
-
lastRequestFrom
java.util.Optional<java.time.Instant> lastRequestFrom(java.lang.String hostname)
Returns the epoch timestamp of the last request received from the given hostname, or empty if there is no memory of this host making a request
-
-