com.atlassian.stash.content.ChangesetCallback |
Known Indirect Subclasses |
This interface is deprecated.
in 3.7 for removal in 4.0. All things "changeset" are being renamed to "commit", the more common term
for the data they represent. Callbacks should implement
CommitCallback
instead.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Receives a fully populated
Changeset for processing. | |||||||||||
Called after the final
changeset has been streamed. | |||||||||||
Called before the first
changeset is streamed. |
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.
changeset | the changeset |
---|
true
if more changesets should be provided; otherwise false
to end streaming,
potentially leaving some number of changesets unreadIOException | May by thrown by implementations which write changesets to some form of output stream. |
---|
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)
.
summary | summarizes the request and the streamed changesets |
---|
IOException | May be thrown by implementations which perform I/O. |
---|
Called before the first changeset
is streamed.
context | provides details about the request for which changesets are being streamed |
---|
IOException | May be thrown by implementations which perform I/O. |
---|