Package com.atlassian.bitbucket.content
Class AbstractChangeCallback
java.lang.Object
com.atlassian.bitbucket.content.AbstractChangeCallback
- All Implemented Interfaces:
ChangeCallback
Convenience implementation of
ChangeCallback
that provides no-op implementations for all methods.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Discards the providedChange
and returnstrue
to continue streaming.void
onEnd
(ChangeSummary summary) Called after the finalchange
has been streamed.void
onStart
(ChangeContext context) Called before the firstchange
is streamed.
-
Constructor Details
-
AbstractChangeCallback
public AbstractChangeCallback()
-
-
Method Details
-
onChange
Discards the providedChange
and returnstrue
to continue streaming.- Specified by:
onChange
in interfaceChangeCallback
- Parameters:
change
- ignored- Returns:
true
- Throws:
IOException
- may be thrown by derived classes
-
onEnd
Description copied from interface:ChangeCallback
Called after the finalchange
has been streamed.Note: If there were no changes, this method may be called immediately after
ChangeCallback.onStart(ChangeContext)
without any calls toChangeCallback.onChange(Change)
.- Specified by:
onEnd
in interfaceChangeCallback
- Parameters:
summary
- summarizes the request and the streamed changes- Throws:
IOException
- may be thrown by implementations which perform I/O.
-
onStart
Description copied from interface:ChangeCallback
Called before the firstchange
is streamed.- Specified by:
onStart
in interfaceChangeCallback
- Parameters:
context
- provides details about the request for which changes are being streamed- Throws:
IOException
- may be thrown by implementations which perform I/O.
-