Package org.onosproject.net.region
Class RegionEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<RegionEvent.Type,Region>
-
- org.onosproject.net.region.RegionEvent
-
- All Implemented Interfaces:
Event<RegionEvent.Type,Region>
public class RegionEvent extends AbstractEvent<RegionEvent.Type,Region>
Describes region event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RegionEvent.Type
-
Constructor Summary
Constructors Constructor Description RegionEvent(RegionEvent.Type type, Region region)
Creates an event of a given type and for the specified region and the current time.RegionEvent(RegionEvent.Type type, Region region, java.util.Set<DeviceId> deviceIds)
Creates an event of a given type and for the specified region, device id list and the current time.RegionEvent(RegionEvent.Type type, Region region, java.util.Set<DeviceId> deviceIds, long time)
Creates an event of a given type and for the specified device and time.
-
Method Summary
-
Methods inherited from class org.onosproject.event.AbstractEvent
subject, time, toString, type
-
-
-
-
Constructor Detail
-
RegionEvent
public RegionEvent(RegionEvent.Type type, Region region)
Creates an event of a given type and for the specified region and the current time.- Parameters:
type
- device event typeregion
- event region subject
-
RegionEvent
public RegionEvent(RegionEvent.Type type, Region region, java.util.Set<DeviceId> deviceIds)
Creates an event of a given type and for the specified region, device id list and the current time.- Parameters:
type
- device event typeregion
- event region subjectdeviceIds
- optional set of device ids
-
RegionEvent
public RegionEvent(RegionEvent.Type type, Region region, java.util.Set<DeviceId> deviceIds, long time)
Creates an event of a given type and for the specified device and time.- Parameters:
type
- device event typeregion
- event region subjectdeviceIds
- optional set of device idstime
- occurrence time
-
-