Class Pruner

  • All Implemented Interfaces:
    java.lang.Runnable

    final class Pruner
    extends java.lang.Object
    implements java.lang.Runnable
    This package private class prunes packets that have timed out, discovering lost services. This class is responsible for emitting DiscoveryEvent.Type LOST events.
    • Field Detail

      • PRUNING_INTERVAL

        static final long PRUNING_INTERVAL
        How often to check for packets to mark as dead.
        See Also:
        Constant Field Values
      • maxHBTime

        final int maxHBTime
        The maximum time to wait for the next heart beat, no matter what.
      • HB_MISSED_BEFORE_DOWN

        static double HB_MISSED_BEFORE_DOWN
        This is how many heart beats to wait before considering the service down.
      • isRunning

        private volatile boolean isRunning
    • Constructor Detail

    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • checkPackets

        private void checkPackets()
      • stop

        public void stop()