Class DiscoveryClient.Stats

  • Enclosing class:
    DiscoveryClient

    public class DiscoveryClient.Stats
    extends java.lang.Object
    Stats is used to track useful attributes of the DiscoveryClient. It includes helpers that can aid debugging and log analysis.
    • Method Detail

      • initLocalRegistrySize

        public int initLocalRegistrySize()
      • initTimestampMs

        public long initTimestampMs()
      • localRegistrySize

        public int localRegistrySize()
      • lastSuccessfulRegistryFetchTimestampMs

        public long lastSuccessfulRegistryFetchTimestampMs()
      • lastSuccessfulHeartbeatTimestampMs

        public long lastSuccessfulHeartbeatTimestampMs()
      • initSucceeded

        public boolean initSucceeded()
        Used to determine if the Discovery client's first attempt to fetch from the service registry succeeded with non-empty results.
        Returns:
        true if succeeded, failed otherwise