Class Metronome

java.lang.Object
org.jgroups.util.Metronome
All Implemented Interfaces:
Runnable

public class Metronome extends Object implements Runnable
Author:
Bela Ban
  • Constructor Details

    • Metronome

      public Metronome(int interval)
  • Method Details

    • add

      public void add(Thread... thread)
    • remove

      public void remove(Thread thread)
    • getTick

      public int getTick()
    • waitFor

      public void waitFor(int tick)
    • stop

      public void stop()
    • run

      public void run()
      Specified by:
      run in interface Runnable