KnowledgeBaseRetrievalStreamEvent Class
- java.
lang. Object - com.
azure. search. documents. knowledgebases. models. KnowledgeBaseRetrievalStreamEvent
- com.
public abstract class KnowledgeBaseRetrievalStreamEvent
Base for polymorphic events emitted by a streaming knowledge base retrieval. Known events expose typed payloads through their subtype's getValue() method. Unrecognized events expose only their names through getEventName(); their payloads are not available and they are not terminal. Stream events are envelopes, not JSON payload models; serialize the typed payload instead.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| final String |
getEventName()
Gets the server-sent event name. |
| boolean |
isTerminal()
Gets whether this event terminates the retrieval stream. |
Methods inherited from java.lang.Object
Method Details
getEventName
public final String getEventName()
Gets the server-sent event name.
Returns:
isTerminal
public boolean isTerminal()
Gets whether this event terminates the retrieval stream.
Returns:
true if this is a terminal event; otherwise false.