public class

AbstractChangeCallback

extends Object
implements ChangeCallback
java.lang.Object
   ↳ com.atlassian.bitbucket.content.AbstractChangeCallback

Class Overview

Convenience implementation of ChangeCallback that provides no-op implementations for all methods.

Summary

Public Constructors
AbstractChangeCallback()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bitbucket.content.ChangeCallback

Public Constructors

public AbstractChangeCallback ()

Public Methods

public boolean onChange (Change change)

Discards the provided Change and returns true to continue streaming.

Parameters
change ignored
Returns
  • true
Throws
IOException may be thrown by derived classes

public void onEnd (ChangeSummary summary)

Called after the final change has been streamed.

Note: If there were no changes, this method may be called immediately after onStart(ChangeContext) without any calls to onChange(Change).

Parameters
summary summarizes the request and the streamed changes
Throws
IOException

public void onStart (ChangeContext context)

Called before the first change is streamed.

Parameters
context provides details about the request for which changes are being streamed
Throws
IOException