Package org.onosproject.net.key
Class DeviceKeyEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<DeviceKeyEvent.Type,DeviceKey>
-
- org.onosproject.net.key.DeviceKeyEvent
-
- All Implemented Interfaces:
Event<DeviceKeyEvent.Type,DeviceKey>
@Beta public class DeviceKeyEvent extends AbstractEvent<DeviceKeyEvent.Type,DeviceKey>
Describes device key events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeviceKeyEvent.Type
Type of device key events.
-
Constructor Summary
Constructors Constructor Description DeviceKeyEvent(DeviceKeyEvent.Type type, DeviceKey deviceKey)
Creates an event of a given type, and for the specified device key.DeviceKeyEvent(DeviceKeyEvent.Type type, DeviceKey deviceKey, long time)
Creates an event of a given type, for the specified device key, and the current time.
-
Method Summary
-
Methods inherited from class org.onosproject.event.AbstractEvent
subject, time, toString, type
-
-
-
-
Constructor Detail
-
DeviceKeyEvent
public DeviceKeyEvent(DeviceKeyEvent.Type type, DeviceKey deviceKey)
Creates an event of a given type, and for the specified device key.- Parameters:
type
- device key event typedeviceKey
- event device key subject
-
DeviceKeyEvent
public DeviceKeyEvent(DeviceKeyEvent.Type type, DeviceKey deviceKey, long time)
Creates an event of a given type, for the specified device key, and the current time.- Parameters:
type
- device key event typedeviceKey
- event device key subjecttime
- occurrence time
-
-