SCMEvent.Dispatcher<E extends SCMEvent<?>>, SCMEvent.TypeORIGIN_UNKNOWN| Modifier | Constructor and Description |
|---|---|
|
SCMSourceEvent(SCMEvent.Type type,
long timestamp,
P payload)
Deprecated.
|
|
SCMSourceEvent(SCMEvent.Type type,
long timestamp,
P payload,
String origin) |
|
SCMSourceEvent(SCMEvent.Type type,
P payload)
Deprecated.
|
|
SCMSourceEvent(SCMEvent.Type type,
P payload,
String origin) |
protected |
SCMSourceEvent(SCMSourceEvent<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. |
String |
descriptionFor(SCMSource source)
Return a description of the event in the context of the supplied
SCMSource. |
static void |
fireLater(SCMSourceEvent<?> event,
long delay,
TimeUnit delayUnits)
Fires the
SCMSourceEvent to all registered SCMEventListener instances after the specified delay. |
static void |
fireNow(SCMSourceEvent<?> event)
Fires the
SCMSourceEvent to all registered SCMEventListener instances. |
abstract String |
getSourceName()
Returns the name of the
SCMSource, such as a repository name within an organization; may be used as an
Item.getName(). |
abstract boolean |
isMatch(SCMNavigator navigator)
Tests if this event applies to the supplied
SCMNavigator. |
abstract boolean |
isMatch(SCMSource source)
Tests if this event applies to the supplied
SCMSource. |
asCauses, description, equals, executorService, getDate, getOrigin, getPayload, getTimestamp, getType, hashCode, originOf, toString@Deprecated public SCMSourceEvent(@NonNull SCMEvent.Type type, long timestamp, @NonNull P payload)
public SCMSourceEvent(@NonNull
SCMEvent.Type type,
long timestamp,
@NonNull
P payload,
@CheckForNull
String origin)
@Deprecated public SCMSourceEvent(@NonNull SCMEvent.Type type, @NonNull P payload)
public SCMSourceEvent(@NonNull
SCMEvent.Type type,
@NonNull
P payload,
@CheckForNull
String origin)
protected SCMSourceEvent(@NonNull
SCMSourceEvent<P> src)
public abstract boolean isMatch(@NonNull
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 abstract boolean isMatch(@NonNull
SCMSource source)
SCMSource. (Calling this method for a Type#CREATED
logically could return true if there has been out of order or delayed delivery of events)source - the SCMSource, the source must be isMatch(SCMSource).true if and only if this event concerns the supplied SCMSource.@CheckForNull public String descriptionFor(SCMSource source)
SCMSource.source - the SCMSource.null if no description can be provided.@NonNull public abstract String getSourceName()
SCMSource, such as a repository name within an organization; may be used as an
Item.getName(). Must be the same as the name that would be passed to
SCMSourceObserver.observe(String) by any SCMNavigator that isMatch(SCMNavigator).
DO NOT TRUST THE RETURN VALUES. Data from events should only be used as a rumour that requires verification.
SCMSourcepublic static void fireNow(@NonNull
SCMSourceEvent<?> event)
SCMSourceEvent to all registered SCMEventListener instances.event - the event to fire.public static void fireLater(@NonNull
SCMSourceEvent<?> event,
long delay,
TimeUnit delayUnits)
SCMSourceEvent 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.