Package com.atlassian.bitbucket.commit
Class AbstractCommitCallback
java.lang.Object
com.atlassian.bitbucket.commit.AbstractCommitCallback
- All Implemented Interfaces:
CommitCallback
Convenience implementation of
CommitCallback that provides no-op implementations for all methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReceives a fully-populatedcommitfor processing.voidonEnd(CommitSummary summary) Called after the finalcommithas been streamed.voidonStart(CommitContext context) Called before the firstcommitis streamed.
-
Constructor Details
-
AbstractCommitCallback
public AbstractCommitCallback()
-
-
Method Details
-
onCommit
Description copied from interface:CommitCallbackReceives a fully-populatedcommitfor processing.This method will never be invoked before
CommitCallback.onStart(CommitContext), and if it is invokedCommitCallback.onEnd(CommitSummary)is guaranteed to be invoked, whether the end happens because this method returnsfalseor because the upstream sender runs out of commits.- Specified by:
onCommitin interfaceCommitCallback- Parameters:
commit- ignored- Returns:
true- Throws:
IOException- may be thrown by derived classes
-
onEnd
Description copied from interface:CommitCallbackCalled after the finalcommithas been streamed.Note: If there were no commits, this method may be called immediately after
CommitCallback.onStart(CommitContext)without any calls toCommitCallback.onCommit(Commit).- Specified by:
onEndin interfaceCommitCallback- Parameters:
summary- ignored- Throws:
IOException- may be thrown by derived classes
-
onStart
Description copied from interface:CommitCallbackCalled before the firstcommitis streamed.- Specified by:
onStartin interfaceCommitCallback- Parameters:
context- ignored- Throws:
IOException- may be thrown by derived classes
-