public class WebSocketQueryHandler extends QueryHandler
complete
Constructor and Description |
---|
WebSocketQueryHandler(WebSocketService webSocketService,
String sessionID,
String queryID)
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
void |
acknowledge()
Indicate that the query was received and accepted by the QUERY_PROCESSING system.
|
void |
complete()
Completes the query and sets the complete flag.
|
void |
fail(QueryError cause)
Fail the query.
|
void |
send(com.yahoo.bullet.pubsub.PubSubMessage response)
Send a
PubSubMessage to the query handler. |
fail
public WebSocketQueryHandler(WebSocketService webSocketService, String sessionID, String queryID)
webSocketService
- The WebSocketService
to handle websocket messages.sessionID
- The session ID to represent the client.queryID
- The query ID.public void complete()
QueryHandler
complete
in class QueryHandler
public void send(com.yahoo.bullet.pubsub.PubSubMessage response)
QueryHandler
PubSubMessage
to the query handler.send
in class QueryHandler
response
- The PubSubMessage containing a response.public void fail(QueryError cause)
QueryHandler
fail
in class QueryHandler
cause
- is the QueryError
that caused the fail to be invoked.public void acknowledge()
QueryHandler
acknowledge
in class QueryHandler
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.