Interface QueryHandler.UpdateHandler
-
- Enclosing interface:
- QueryHandler
public static interface QueryHandler.UpdateHandlerInterface describing a stream of updates to a subscription query.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcomplete()Indicates the subscription query has completed, meaning no more updates are to be expected.voidsendUpdate(QueryUpdate queryUpdate)Send the givenqueryUpdatein response to the subscription query this handler was provided for.
-
-
-
Method Detail
-
sendUpdate
void sendUpdate(QueryUpdate queryUpdate)
Send the givenqueryUpdatein response to the subscription query this handler was provided for.- Parameters:
queryUpdate- the update to send
-
complete
void complete()
Indicates the subscription query has completed, meaning no more updates are to be expected. The component sending the subscription query is requested to close the subscription.
-
-