Package org.onosproject.net.meter
Class MeterEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<MeterEvent.Type,Meter>
-
- org.onosproject.net.meter.MeterEvent
-
- All Implemented Interfaces:
Event<MeterEvent.Type,Meter>
public class MeterEvent extends AbstractEvent<MeterEvent.Type,Meter>
Entity that represents Meter events.
-
-
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 org.onosproject.event.AbstractEvent
subject, time, toString, type
-
-
-
-
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 typemeter
- 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 typemeter
- event subjecttime
- occurrence time
-
-