com.atlassian.bitbucket.commit.CommitCallback |
Known Indirect Subclasses |
Describes a callback for receiving a stream of commits
.
Note: Implementors are strongly encouraged to extend from AbstractCommitCallback
. This interface
will change over time, and any class implementing it directly will be broken by such changes. Extending
from the abstract class will help prevent such breakages.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Receives a fully-populated
commit for processing. | |||||||||||
Called after the final
commit has been streamed. | |||||||||||
Called before the first
commit is streamed. |
Receives a fully-populated commit
for processing.
This method will never be invoked before onStart(CommitContext)
, and if it is invoked
onEnd(CommitSummary)
is guaranteed to be invoked, whether the end happens because this
method returns false
or because the upstream sender runs out of commits.
commit | the commit |
---|
true
if more commits should be provided; otherwise false
to end streaming,
potentially leaving some number of commits unreadIOException | for implementations which perform I/O |
---|
Called after the final commit
has been streamed.
Note: If there were no commits, this method may be called immediately after onStart(CommitContext)
without any calls to onCommit(Commit)
.
summary | summarizes the request and the streamed commits |
---|
IOException | for implementations which perform I/O |
---|
Called before the first commit
is streamed.
context | provides details about the request for which commits are being streamed |
---|
IOException | for implementations which perform I/O |
---|