Class WheelTimerServiceSupplier

java.lang.Object
io.aeron.cluster.WheelTimerServiceSupplier
All Implemented Interfaces:
TimerServiceSupplier

public class WheelTimerServiceSupplier extends Object implements TimerServiceSupplier
Supplies an instance of a WheelTimerService based on the configuration given to the constructor.
  • Constructor Details

    • WheelTimerServiceSupplier

      public WheelTimerServiceSupplier(TimeUnit timeUnit, long startTime, long tickResolution, int ticksPerWheel)
      Construct the supplier with the necessary parameters to configure the timer wheel.
      Parameters:
      timeUnit - for the values used to express the time. This time unit is used to denote the supplied time values. When the instance is constructed it will use this to convert the supplied startTime and tickResolution into the time unit that is being used by the cluster clock.
      startTime - for the wheel (in given TimeUnit).
      tickResolution - for the wheel, i.e. how many TimeUnits per tick.
      ticksPerWheel - or spokes, for the wheel (must be power of 2).
  • Method Details