P - the (provider specific) payload.public abstract class SCMNavigatorEvent<P> extends SCMEvent<P>
SCMNavigator instances.SCMEvent.Dispatcher<E extends SCMEvent<?>>, SCMEvent.TypeORIGIN_UNKNOWN| Modifier | Constructor and Description |
|---|---|
|
SCMNavigatorEvent(SCMEvent.Type type,
long timestamp,
P payload)
Deprecated.
|
|
SCMNavigatorEvent(SCMEvent.Type type,
long timestamp,
P payload,
String origin) |
|
SCMNavigatorEvent(SCMEvent.Type type,
P payload)
Deprecated.
|
|
SCMNavigatorEvent(SCMEvent.Type type,
P payload,
String origin) |
protected |
SCMNavigatorEvent(SCMNavigatorEvent<P> src) |
| Modifier and Type | Method and Description |
|---|---|
String |
descriptionFor(SCMNavigator navigator)
Return a description of the event in the context of the supplied
SCMNavigator. |
static void |
fireLater(SCMNavigatorEvent<?> event,
long delay,
TimeUnit delayUnits)
Fires the
SCMNavigatorEvent to all registered SCMEventListener instances after the specified delay. |
static void |
fireNow(SCMNavigatorEvent<?> event)
Fires the
SCMNavigatorEvent to all registered SCMEventListener instances. |
abstract boolean |
isMatch(SCMNavigator navigator)
Tests if this event applies to the supplied
SCMNavigator. |
asCauses, description, equals, executorService, getDate, getOrigin, getPayload, getTimestamp, getType, hashCode, originOf, toString@Deprecated public SCMNavigatorEvent(@NonNull SCMEvent.Type type, long timestamp, @NonNull P payload)
public SCMNavigatorEvent(@NonNull
SCMEvent.Type type,
long timestamp,
@NonNull
P payload,
@CheckForNull
String origin)
@Deprecated public SCMNavigatorEvent(@NonNull SCMEvent.Type type, @NonNull P payload)
public SCMNavigatorEvent(@NonNull
SCMEvent.Type type,
@NonNull
P payload,
@CheckForNull
String origin)
protected SCMNavigatorEvent(@NonNull
SCMNavigatorEvent<P> src)
public abstract boolean isMatch(SCMNavigator navigator)
SCMNavigator.navigator - the SCMNavigator.true if and only if this event concerns the supplied SCMNavigator.@CheckForNull public String descriptionFor(SCMNavigator navigator)
SCMNavigator.navigator - the SCMNavigator, the navigator must be isMatch(SCMNavigator).null if no description can be provided.public static void fireNow(@NonNull
SCMNavigatorEvent<?> event)
SCMNavigatorEvent to all registered SCMEventListener instances.event - the event to fire.public static void fireLater(@NonNull
SCMNavigatorEvent<?> event,
long delay,
TimeUnit delayUnits)
SCMNavigatorEvent to all registered SCMEventListener instances after the specified delay.event - the event to fire.delay - how long to wait before firing the event.delayUnits - the units of time in which the delay is expressed.Copyright © 2016–2019. All rights reserved.