@Deprecated public interface

ChangeCallback2

implements ChangeCallback
com.atlassian.stash.content.ChangeCallback2
Known Indirect Subclasses

Class Overview

ChangeCallback2 replaces onStart() and onEnd(boolean) with onStart(ChangeContext) and onEnd(ChangeSummary), respectively. The semantics of the two methods are unchanged.

Note: This interface is transitional and will be folded back into ChangeCallback in Stash 3.0. Implementors are strongly encouraged to extend from AbstractChangeCallback. This interface will change over time, and any class implementing it directly will be broken by those changes. Extending from the abstract class will help minimize such breakages.

Summary

Public Methods
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 interface com.atlassian.stash.content.ChangeCallback

Public Methods

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 May be thrown by implementations which perform I/O.

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 May be thrown by implementations which perform I/O.