Interface TagCallback
public interface TagCallback
A callback for streaming
tags
.-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onEnd
(TagSummary summary) Called after the finaltag
has been streamed.default void
onStart
(TagContext context) Called before the firsttag
is streamed.default boolean
Called to process atag
.
-
Method Details
-
onEnd
Called after the finaltag
has been streamed.Note: If there were no tags, this method may be called immediately after
onStart(TagContext)
without any calls toonTag(Tag)
.- Parameters:
summary
- summarizes the request and the streamed tags- Throws:
IOException
- may be thrown by implementations which perform I/O
-
onStart
Called before the firsttag
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
-
onTag
Called to process atag
.- Parameters:
tag
- thetag
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
-