Interface PushCallback
ref changes.
Implementations of this callback performing internal paging may return false from
onRefChange(com.atlassian.bitbucket.repository.MinimalRefChange) to indicate no more ref changes are desired.
- Since:
- 7.11
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonEnd(PushSummary summary) Called after the finalref changehas been streamed.default voidonFailedRef(MinimalRef ref) Called when a ref failed to synchronize.default voidonProgress(Progress progress) Called when there is a progress update for the operation.default voidonRefChange(MinimalRefChange refChange) Provides aref changeto the callback for processing.default voidonStart(PushContext context) Called before the firstref changeis streamed.
-
Method Details
-
onEnd
Called after the finalref changehas been streamed.Note: If there were no ref changes, this method may be called immediately after
onStart(com.atlassian.bitbucket.scm.PushContext)without any calls toonRefChange(com.atlassian.bitbucket.repository.MinimalRefChange).- Parameters:
summary- summarizes the request and the streamed changes- Throws:
IOException- may be thrown by implementations which perform I/O
-
onFailedRef
Called when a ref failed to synchronize.- Parameters:
ref- the ref that failed- Throws:
IOException- may be thrown by implementations which perform I/O
-
onProgress
Called when there is a progress update for the operation.Progress messages are taken directly from the output of the SCM and are not localized. Percentages are estimates and are not guaranteed to reach
100beforeonEnd(com.atlassian.bitbucket.scm.PushSummary)has been called. OnceonEnd(com.atlassian.bitbucket.scm.PushSummary)has been called, the progress should be assumed to be 100% complete.- Parameters:
progress- the message and percentage of the progress- Throws:
IOException- may be thrown by implementations which perform I/O
-
onRefChange
Provides aref changeto the callback for processing.- Parameters:
refChange- the ref change to process- Throws:
IOException- may be thrown by implementations which perform I/O
-
onStart
Called before the firstref changeis streamed.- Parameters:
context- provides details about the request for which ref changes are being streamed- Throws:
IOException- may be thrown by implementations which perform I/O
-