Package jenkins.scm.api
Class SCMHeadObserver.Filter<O extends SCMHeadObserver>
java.lang.Object
jenkins.scm.api.SCMHeadObserver
jenkins.scm.api.SCMHeadObserver.Wrapped<O>
jenkins.scm.api.SCMHeadObserver.Filter<O>
- Type Parameters:
- O- the type of wrapped- SCMHeadObserver
- Enclosing class:
- SCMHeadObserver
public static class SCMHeadObserver.Filter<O extends SCMHeadObserver>
extends SCMHeadObserver.Wrapped<O>
A 
SCMHeadObserver that filters the SCMHead instances that will be observed by the wrapped
 SCMHeadObserver.- Since:
- 2.0
- 
Nested Class SummaryNested classes/interfaces inherited from class jenkins.scm.api.SCMHeadObserverSCMHeadObserver.AllFinished, SCMHeadObserver.Any, SCMHeadObserver.Collector, SCMHeadObserver.Filter<O extends SCMHeadObserver>, SCMHeadObserver.Named, SCMHeadObserver.None, SCMHeadObserver.OneFinished, SCMHeadObserver.Selector, SCMHeadObserver.Wrapped<O extends SCMHeadObserver>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanReturns information about whether the observer wants more results.voidobserve(SCMHead head, SCMRevision revision) Observes a head and current revision.Methods inherited from class jenkins.scm.api.SCMHeadObserver.Wrappedunwrap
- 
Constructor Details- 
FilterConstructor.- Parameters:
- delegate- The- SCMHeadObserverto wrap.
- heads- The- SCMHeadinstances that my be observed by the wrapped- SCMHeadObserver.
 
 
- 
- 
Method Details- 
observepublic void observe(@NonNull SCMHead head, @NonNull SCMRevision revision) throws IOException, InterruptedException Observes a head and current revision.- Overrides:
- observein class- SCMHeadObserver.Wrapped<O extends SCMHeadObserver>
- Parameters:
- head- the head.
- revision- the revision.
- Throws:
- IOException- if processing of the observation could not be completed due to an- IOException.
- InterruptedException- if processing of the observation was interrupted
 
- 
isObservingpublic boolean isObserving()Returns information about whether the observer wants more results.- Overrides:
- isObservingin class- SCMHeadObserver.Wrapped<O extends SCMHeadObserver>
- Returns:
- trueif the observer is still observing or- falseto signal that it is ok to stop early.
 
- 
getIncludesReturns the subset ofSCMHeadinstances that this observer is interested in ornullif interested in allSCMHeadinstances.Implementations should not assume that the SCMHeadObserver.getIncludes()will be honoured. This method is designed to provide a hint toSCMSourceimplementations.- Overrides:
- getIncludesin class- SCMHeadObserver.Wrapped<O extends SCMHeadObserver>
- Returns:
- the subset of SCMHeadinstances that this observer is interested in ornull.
 
 
-