Interface TagCallback
public interface TagCallback
A callback for streaming
tags.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonEnd(TagSummary summary) Called after the finaltaghas been streamed.default voidonStart(TagContext context) Called before the firsttagis streamed.default booleanCalled to process atag.
-
Method Details
-
onEnd
Called after the finaltaghas 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 firsttagis 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- thetagto be handled by the callback- Returns:
trueif further tags should be streamed; otherwise,falseto stop streaming- Throws:
IOException- may be thrown by implementations which perform I/O
-