com.atlassian.stash.content.ChangesetCallback |
Known Indirect Subclasses
|
Class Overview
Callback that can be provided to a ScmClient to stream collections of Changesets from the scm.
Note: Implementors are
strongly encouraged to extend from
AbstractChangesetCallback
. This interface
will change, over time, and any class implementing it directly will be broken by such changes. Extending from
the abstract class will help prevent such breakages.
Public Methods
public
boolean
onChangeset
(Changeset changeset)
Receives a fully populated Changeset
for processing.
This method will never be invoked before
onStart(ChangesetContext)
, and if it is invoked
onEnd(ChangesetSummary)
is guaranteed
to be invoked, whether the end happens because this method returns
false
or because the upstream sender
runs out of changesets.
Returns
true
if more changesets should be provided; otherwise false
to end streaming,
potentially leaving some number of changesets unread
Throws
IOException
| May by thrown by implementations which write changesets to some form of output stream.
|
Parameters
summary
| summarizes the request and the streamed changesets |
Throws
IOException
| May be thrown by implementations which perform I/O.
|
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.
|