Interface BranchCallback
public interface BranchCallback
A callback for streaming
branches.- Since:
- 4.6
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanCalled to process abranch.default voidonEnd(BranchSummary summary) Called after the finalbranchhas been streamed.default voidonStart(BranchContext context) Called before the firstbranchis streamed.
-
Method Details
-
onBranch
Called to process abranch.- Parameters:
branch- thebranchto stream- Returns:
trueif further branches should be streamed; otherwise,falseto stop streaming- Throws:
IOException- may be thrown by implementations which perform I/O.
-
onEnd
Called after the finalbranchhas been streamed.Note: If there were no refs, this method may be called immediately after
onStart(BranchContext)without any calls toonBranch(Branch).- Parameters:
summary- summarizes the request and the streamed refs- Throws:
IOException- may be thrown by implementations which perform I/O.
-
onStart
Called before the firstbranchis streamed.- Parameters:
context- provides details about the request for which refs are being streamed- Throws:
IOException- may be thrown by implementations which perform I/O.
-