| com.atlassian.stash.content.ChangesetCallback |
Known Indirect Subclasses
|
This interface is deprecated.
in 3.7 for removal in 5.0. All things "changeset" are being renamed to "commit", the more common term
for the data they represent. Due to the significant number of touchpoints, the deprecated classes and
interfaces will be left in for an entire major release cycle, rather than being removed in 4.0.
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 fromAbstractChangesetCallback. 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.
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 unread| IOException | May by thrown by implementations which write changesets to some form of output stream. |
|---|
Called after the final changeset has been streamed.
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. |
|---|