Class FILE_PING.InfoWriter

java.lang.Object
org.jgroups.protocols.FILE_PING.InfoWriter
All Implemented Interfaces:
Runnable, TimeScheduler.Task
Enclosing class:
FILE_PING

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

    • max_writes

      protected final int max_writes
    • num_writes

      protected int num_writes
    • sleep_interval

      protected final long sleep_interval
  • Constructor Details

    • InfoWriter

      public InfoWriter(int max_writes, long sleep_interval)
  • Method Details

    • 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 Runnable