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