public abstract class

AbstractChangesetCallback

extends Object
implements ChangesetCallback2
java.lang.Object
   ↳ com.atlassian.stash.content.AbstractChangesetCallback

Class Overview

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

Summary

Public Constructors
AbstractChangesetCallback()
Public Methods
boolean onChangeset(Changeset changeset)
Discards the provided Changeset and returns true to continue streaming.
void onEnd()
Called to indicate there are no more Changesets to process.
void onEnd(ChangesetSummary summary)
Delegates to onEnd() to retain backwards compatibility with ChangesetCallback.
void onStart(ChangesetContext context)
Delegates to onStart() to retain backwards compatibility with ChangesetCallback.
void onStart()
Called to indicate the first changeset has been found, before the first call to onChangeset(Changeset).
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.stash.content.ChangesetCallback
From interface com.atlassian.stash.content.ChangesetCallback2

Public Constructors

public AbstractChangesetCallback ()

Public Methods

public boolean onChangeset (Changeset changeset)

Discards the provided Changeset and returns true to continue streaming.

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

public void onEnd ()

Called to indicate there are no more Changesets to process. This may be triggered artificially by returning false from onChangeset(Changeset).

If onStart() and onChangeset(Changeset) are not invoked, this method will not be either.

Throws
IOException

public void onEnd (ChangesetSummary summary)

Delegates to onEnd() to retain backwards compatibility with ChangesetCallback.

Parameters
summary ignored
Throws
IOException propagated if thrown by onEnd()

public void onStart (ChangesetContext context)

Delegates to onStart() to retain backwards compatibility with ChangesetCallback.

Parameters
context ignored
Throws
IOException propagated if thrown by onStart()

public void onStart ()

Called to indicate the first changeset has been found, before the first call to onChangeset(Changeset).

If there are no changesets available (meaning onChangeset(Changeset) will never be called), this method will never be invoked on the callback.

Throws
IOException