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 void
onEnd
(PushSummary summary) Called after the finalref change
has been streamed.default void
onFailedRef
(MinimalRef ref) Called when a ref failed to synchronize.default void
onProgress
(Progress progress) Called when there is a progress update for the operation.default void
onRefChange
(MinimalRefChange refChange) Provides aref change
to the callback for processing.default void
onStart
(PushContext context) Called before the firstref change
is streamed.
-
Method Details
-
onEnd
Called after the finalref change
has 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
100
beforeonEnd(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 change
to 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 change
is 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
-