public class EvpnRouteEvent extends org.onosproject.event.AbstractEvent<EvpnRouteEvent.Type,EvpnRoute>
| Modifier and Type | Class and Description |
|---|---|
static class |
EvpnRouteEvent.Type
Route event type.
|
| Modifier | Constructor and Description |
|---|---|
|
EvpnRouteEvent(EvpnRouteEvent.Type type,
EvpnRoute subject)
Creates a new route event without specifying previous subject.
|
|
EvpnRouteEvent(EvpnRouteEvent.Type type,
EvpnRoute subject,
Collection<EvpnRoute> alternatives)
Creates a new route event without specifying previous subject.
|
|
EvpnRouteEvent(EvpnRouteEvent.Type type,
EvpnRoute subject,
EvpnRoute prevSubject)
Creates a new route event with previous subject.
|
|
EvpnRouteEvent(EvpnRouteEvent.Type type,
EvpnRoute subject,
EvpnRoute prevSubject,
Collection<EvpnRoute> alternatives)
Creates a new route event with a previous subject and alternative routes.
|
protected |
EvpnRouteEvent(EvpnRouteEvent.Type type,
EvpnRoute subject,
long time)
Creates a new route event.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<EvpnRoute> |
alternatives()
Returns the set of alternative routes for the subject's prefix.
|
boolean |
equals(Object other) |
int |
hashCode() |
EvpnRoute |
prevSubject()
Returns the previous subject of the event.
|
String |
toString() |
public EvpnRouteEvent(EvpnRouteEvent.Type type, EvpnRoute subject)
type - event typesubject - event subjectpublic EvpnRouteEvent(EvpnRouteEvent.Type type, EvpnRoute subject, Collection<EvpnRoute> alternatives)
type - event typesubject - event subjectalternatives - alternative routes for subject's prefixprotected EvpnRouteEvent(EvpnRouteEvent.Type type, EvpnRoute subject, long time)
type - event typesubject - event subjecttime - event timepublic EvpnRouteEvent(EvpnRouteEvent.Type type, EvpnRoute subject, EvpnRoute prevSubject)
type - event typesubject - event subjectprevSubject - previous subjectpublic EvpnRouteEvent(EvpnRouteEvent.Type type, EvpnRoute subject, EvpnRoute prevSubject, Collection<EvpnRoute> alternatives)
type - event typesubject - event subjectprevSubject - previous subjectalternatives - alternative routes for subject's prefixpublic EvpnRoute prevSubject()
public Collection<EvpnRoute> alternatives()
public String toString()
toString in class org.onosproject.event.AbstractEvent<EvpnRouteEvent.Type,EvpnRoute>