public class MeterEvent extends AbstractEvent<MeterEvent.Type,Meter>
Modifier and Type | Class and Description |
---|---|
static class |
MeterEvent.Type |
Constructor and 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.
|
subject, time, toString, type
public MeterEvent(MeterEvent.Type type, Meter meter)
type
- meter event typemeter
- event subjectpublic MeterEvent(MeterEvent.Type type, Meter meter, long time)
type
- meter event typemeter
- event subjecttime
- occurrence time