public interface TagCallback
tags.| Modifier and Type | Method and Description |
|---|---|
default void |
onEnd(TagSummary summary)
Called after the final
tag has been streamed. |
default void |
onStart(TagContext context)
Called before the first
tag is streamed. |
default boolean |
onTag(Tag tag)
Called to process a
tag. |
default void onEnd(@Nonnull TagSummary summary) throws IOException
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).
summary - summarizes the request and the streamed tagsIOException - may be thrown by implementations which perform I/Odefault void onStart(@Nonnull TagContext context) throws IOException
tag is streamed.context - provides details about the request for which tags are being streamedIOException - may be thrown by implementations which perform I/Odefault boolean onTag(@Nonnull Tag tag) throws IOException
tag.tag - the tag to be handled by the callbacktrue if further tags should be streamed; otherwise, false to stop streamingIOException - may be thrown by implementations which perform I/OCopyright © 2023 Atlassian. All rights reserved.