Class SCMHeadObserver.None

java.lang.Object
jenkins.scm.api.SCMHeadObserver
jenkins.scm.api.SCMHeadObserver.None
Enclosing class:
SCMHeadObserver

public static final class SCMHeadObserver.None extends SCMHeadObserver
An observer that is already finished.
Since:
2.2.0
  • Field Details

  • Method Details

    • observe

      public void observe(@NonNull SCMHead head, @NonNull SCMRevision revision)
      Observes a head and current revision.
      Specified by:
      observe in class SCMHeadObserver
      Parameters:
      head - the head.
      revision - the revision.
    • isObserving

      public boolean isObserving()
      Returns information about whether the observer wants more results.
      Overrides:
      isObserving in class SCMHeadObserver
      Returns:
      true if the observer is still observing or false to signal that it is ok to stop early.