public class AbstractChangeCallback extends Object implements ChangeCallback
ChangeCallback that provides no-op implementations for all methods.| Constructor and Description |
|---|
AbstractChangeCallback() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
onChange(Change change)
Discards the provided
Change and returns true to continue streaming. |
void |
onEnd(ChangeSummary summary)
Called after the final
change has been streamed. |
void |
onStart(ChangeContext context)
Called before the first
change is streamed. |
public boolean onChange(@Nonnull Change change) throws IOException
Change and returns true to continue streaming.onChange in interface ChangeCallbackchange - ignoredtrueIOException - may be thrown by derived classespublic void onEnd(@Nonnull ChangeSummary summary) throws IOException
ChangeCallbackchange has been streamed.
Note: If there were no changes, this method may be called immediately after ChangeCallback.onStart(ChangeContext)
without any calls to ChangeCallback.onChange(Change).
onEnd in interface ChangeCallbacksummary - summarizes the request and the streamed changesIOException - may be thrown by implementations which perform I/O.public void onStart(@Nonnull ChangeContext context) throws IOException
ChangeCallbackchange is streamed.onStart in interface ChangeCallbackcontext - provides details about the request for which changes are being streamedIOException - may be thrown by implementations which perform I/O.Copyright © 2019 Atlassian. All rights reserved.