public interface BranchCallback
branches
.Modifier and Type | Method and Description |
---|---|
default boolean |
onBranch(Branch branch)
Called to process a
branch . |
default void |
onEnd(BranchSummary summary)
Called after the final
branch has been streamed. |
default void |
onStart(BranchContext context)
Called before the first
branch is streamed. |
default boolean onBranch(@Nonnull Branch branch) throws IOException
branch
.branch
- the branch
to streamtrue
if further branches should be streamed; otherwise, false
to stop streamingIOException
- may be thrown by implementations which perform I/O.default void onEnd(@Nonnull BranchSummary summary) throws IOException
branch
has been streamed.
Note: If there were no refs, this method may be called immediately after onStart(BranchContext)
without any calls to onBranch(Branch)
.
summary
- summarizes the request and the streamed refsIOException
- may be thrown by implementations which perform I/O.default void onStart(@Nonnull BranchContext context) throws IOException
branch
is streamed.context
- provides details about the request for which refs are being streamedIOException
- may be thrown by implementations which perform I/O.Copyright © 2020 Atlassian. All rights reserved.