Class MeterEvent

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MeterEvent.Type  
    • Constructor Summary

      Constructors 
      Constructor Description
      MeterEvent​(MeterEvent.Type type, Meter meter)
      Creates an event of a given type and for the specified meter and the current time.
      MeterEvent​(MeterEvent.Type type, Meter meter, long time)
      Creates an event of a given type and for the specified meter and time.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MeterEvent

        public MeterEvent​(MeterEvent.Type type,
                          Meter meter)
        Creates an event of a given type and for the specified meter and the current time.
        Parameters:
        type - meter event type
        meter - event subject
      • MeterEvent

        public MeterEvent​(MeterEvent.Type type,
                          Meter meter,
                          long time)
        Creates an event of a given type and for the specified meter and time.
        Parameters:
        type - meter event type
        meter - event subject
        time - occurrence time