@Deprecated public interface

ChangesetCallback2

implements ChangesetCallback
com.atlassian.stash.content.ChangesetCallback2
Known Indirect Subclasses

Class Overview

ChangesetCallback2 replaces onStart() and onEnd() with onStart(ChangesetContext) and onEnd(ChangesetSummary), respectively. The semantics of the two methods are unchanged.

Note: This interface is transitional and will be folded back into ChangesetCallback in Stash 3.0. Implementors are strongly encouraged to extend from AbstractChangesetCallback. 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(ChangesetSummary summary)
Called after the final changeset has been streamed.
void onStart(ChangesetContext context)
Called before the first changeset is streamed.
[Expand]
Inherited Methods
From interface com.atlassian.stash.content.ChangesetCallback

Public Methods

public void onEnd (ChangesetSummary summary)

Called after the final changeset has been streamed.

Note: If there were no changes, this method may be called immediately after onStart(ChangesetContext) without any calls to onChangeset(Changeset).

Parameters
summary summarizes the request and the streamed changesets
Throws
IOException May be thrown by implementations which perform I/O.

public void onStart (ChangesetContext context)

Called before the first changeset is streamed.

Parameters
context provides details about the request for which changesets are being streamed
Throws
IOException May be thrown by implementations which perform I/O.