Class BasicNetworkStatus.HostInfo

  • Enclosing class:
    BasicNetworkStatus

    protected static class BasicNetworkStatus.HostInfo
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int attemptLimit  
      protected java.util.concurrent.atomic.AtomicLong lastLogTime  
      protected java.util.concurrent.atomic.AtomicInteger logCount  
      protected long tryAgainInterval  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected HostInfo​(int attemptLimit, long tryAgainInterval)  
    • Field Detail

      • tryAgainInterval

        protected final long tryAgainInterval
      • attemptLimit

        protected final int attemptLimit
      • logCount

        protected java.util.concurrent.atomic.AtomicInteger logCount
      • lastLogTime

        protected java.util.concurrent.atomic.AtomicLong lastLogTime
    • Constructor Detail

      • HostInfo

        protected HostInfo​(int attemptLimit,
                           long tryAgainInterval)
    • Method Detail

      • isUnavailable

        protected boolean isUnavailable()
      • isTimeToTryAgain

        protected boolean isTimeToTryAgain()