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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDiscards the providedChangeand returnstrueto continue streaming.voidonEnd(ChangeSummary summary) Called after the finalchangehas been streamed.voidonStart(ChangeContext context) Called before the firstchangeis streamed.
-
Constructor Details
-
AbstractChangeCallback
public AbstractChangeCallback()
-
-
Method Details
-
onChange
Discards the providedChangeand returnstrueto continue streaming.- Specified by:
onChangein interfaceChangeCallback- Parameters:
change- ignored- Returns:
true- Throws:
IOException- may be thrown by derived classes
-
onEnd
Description copied from interface:ChangeCallbackCalled after the finalchangehas 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:
onEndin 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:ChangeCallbackCalled before the firstchangeis streamed.- Specified by:
onStartin 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.
-