Class FILE_PING.InfoWriter

  • All Implemented Interfaces:
    java.lang.Runnable, TimeScheduler.Task
    Enclosing class:
    FILE_PING

    protected class FILE_PING.InfoWriter
    extends java.lang.Object
    implements TimeScheduler.Task
    Class which calls writeAll() a few times. Started after a view change in which an old coord left
    • Constructor Summary

      Constructors 
      Constructor Description
      InfoWriter​(int max_writes, long sleep_interval)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long nextInterval()  
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • max_writes

        protected final int max_writes
      • num_writes

        protected int num_writes
      • sleep_interval

        protected final long sleep_interval
    • Constructor Detail

      • InfoWriter

        public InfoWriter​(int max_writes,
                          long sleep_interval)
    • Method Detail

      • nextInterval

        public long nextInterval()
        Specified by:
        nextInterval in interface TimeScheduler.Task
        Returns:
        the next scheduled interval in ms. If <= 0 the task will not be re-scheduled
      • run

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