Class ObjectiveEvent
- java.lang.Object
-
- org.onosproject.event.AbstractEvent<ObjectiveEvent.Type,java.lang.Integer>
-
- org.onosproject.net.flowobjective.ObjectiveEvent
-
- All Implemented Interfaces:
Event<ObjectiveEvent.Type,java.lang.Integer>
@Beta public class ObjectiveEvent extends AbstractEvent<ObjectiveEvent.Type,java.lang.Integer>
Describes a objective event.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ObjectiveEvent.Type
Type of objective events.
-
Constructor Summary
Constructors Constructor Description ObjectiveEvent(ObjectiveEvent.Type type, java.lang.Integer objective)
Creates an event of the given type for the specified objective id.ObjectiveEvent(ObjectiveEvent.Type type, java.lang.Integer objective, long time)
Creates an event of the given type for the specified objective id at the given time.
-
Method Summary
-
Methods inherited from class org.onosproject.event.AbstractEvent
subject, time, toString, type
-
-
-
-
Constructor Detail
-
ObjectiveEvent
public ObjectiveEvent(ObjectiveEvent.Type type, java.lang.Integer objective)
Creates an event of the given type for the specified objective id.- Parameters:
type
- the type of the eventobjective
- the objective id the event is about
-
ObjectiveEvent
public ObjectiveEvent(ObjectiveEvent.Type type, java.lang.Integer objective, long time)
Creates an event of the given type for the specified objective id at the given time.- Parameters:
type
- the type of the eventobjective
- the objective id the event is abouttime
- the time of the event
-
-