public interface

TagCallback

com.atlassian.bitbucket.repository.TagCallback

Class Overview

A callback for streaming tags.

Summary

Public Methods
void onEnd(TagSummary summary)
Called after the final tag has been streamed.
void onStart(TagContext context)
Called before the first tag is streamed.
boolean onTag(Tag tag)
Called to process a tag.

Public Methods

public void onEnd (TagSummary summary)

Called after the final tag has been streamed.

Note: If there were no tags, this method may be called immediately after onStart(TagContext) without any calls to onTag(Tag).

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

public void onStart (TagContext context)

Called before the first tag is streamed.

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

public boolean onTag (Tag tag)

Called to process a tag.

Parameters
tag the tag to be handled by the callback
Returns
  • true if further tags should be streamed; otherwise, false to stop streaming
Throws
IOException May be thrown by implementations which perform I/O