O - the type of wrapped SCMHeadObserverpublic static class SCMHeadObserver.Filter<O extends SCMHeadObserver> extends SCMHeadObserver.Wrapped<O>
SCMHeadObserver that filters the SCMHead instances that will be observed by the wrapped
SCMHeadObserver.SCMHeadObserver.AllFinished, SCMHeadObserver.Any, SCMHeadObserver.Collector, SCMHeadObserver.Filter<O extends SCMHeadObserver>, SCMHeadObserver.Named, SCMHeadObserver.None, SCMHeadObserver.OneFinished, SCMHeadObserver.Selector, SCMHeadObserver.Wrapped<O extends SCMHeadObserver>| Constructor and Description |
|---|
Filter(O delegate,
SCMHead... heads)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<SCMHead> |
getIncludes()
|
boolean |
isObserving()
Returns information about whether the observer wants more results.
|
void |
observe(SCMHead head,
SCMRevision revision)
Observes a head and current revision.
|
unwrappublic Filter(O delegate, SCMHead... heads)
delegate - The SCMHeadObserver to wrap.heads - The SCMHead instances that my be observed by the wrapped SCMHeadObserver.public void observe(@NonNull
SCMHead head,
@NonNull
SCMRevision revision)
throws IOException,
InterruptedException
observe in class SCMHeadObserver.Wrapped<O extends SCMHeadObserver>head - the head.revision - the revision.IOException - if processing of the observation could not be completed due to an IOException.InterruptedException - if processing of the observation was interruptedpublic boolean isObserving()
isObserving in class SCMHeadObserver.Wrapped<O extends SCMHeadObserver>true if the observer is still observing or false to signal that it is ok to stop early.public Set<SCMHead> getIncludes()
SCMHead instances that this observer is interested in or null if
interested in all SCMHead instances.
Implementations should not assume that the SCMHeadObserver.getIncludes() will be honoured.
This method is designed to provide a hint to SCMSource implementations.
getIncludes in class SCMHeadObserver.Wrapped<O extends SCMHeadObserver>SCMHead instances that this observer is interested in or null.Copyright © 2016–2019. All rights reserved.