Package org.onosproject.event
Interface Event<T extends Enum,S>
-
- All Known Implementing Classes:
AbstractEvent
,AlarmEvent
,ApplicationEvent
,ClusterEvent
,ClusterMetadataEvent
,ComponentConfigEvent
,ControlMessageEvent
,DeviceAgentEvent
,DeviceEvent
,DeviceKeyEvent
,DriverEvent
,EdgePortEvent
,FlowRuleBatchEvent
,FlowRuleEvent
,GroupEvent
,HostEvent
,HostProbingEvent
,IntentEvent
,InterfaceEvent
,LeadershipEvent
,LinkEvent
,MastershipEvent
,McastEvent
,MeterEvent
,NetworkConfigEvent
,ObjectiveEvent
,PacketEvent
,PartitionEvent
,PiPipeconfDeviceMappingEvent
,PiPipeconfEvent
,PiPipeconfWatchdogEvent
,PiTranslationEvent
,RegionEvent
,ReplicaInfoEvent
,ResourceEvent
,TopologyEvent
,UiModelEvent
,UpgradeEvent
,WorkPartitionEvent
public interface Event<T extends Enum,S>
Abstraction of an of a time-stamped event pertaining to an arbitrary subject.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description S
subject()
Returns the subject of the event.long
time()
Returns the timestamp of when the event occurred, given in milliseconds since the start of epoch.T
type()
Returns the type of the event.
-
-
-
Method Detail
-
time
long time()
Returns the timestamp of when the event occurred, given in milliseconds since the start of epoch.- Returns:
- timestamp in milliseconds
-
type
T type()
Returns the type of the event.- Returns:
- event type
-
subject
S subject()
Returns the subject of the event.- Returns:
- subject to which this event pertains
-
-