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 ChangeCallback
change
- ignoredtrue
IOException
- may be thrown by derived classespublic void onEnd(@Nonnull ChangeSummary summary) throws IOException
ChangeCallback
change
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 ChangeCallback
summary
- summarizes the request and the streamed changesIOException
- may be thrown by implementations which perform I/O.public void onStart(@Nonnull ChangeContext context) throws IOException
ChangeCallback
change
is streamed.onStart
in interface ChangeCallback
context
- provides details about the request for which changes are being streamedIOException
- may be thrown by implementations which perform I/O.Copyright © 2022 Atlassian. All rights reserved.