Package com.vaadin.hilla.signals.handler
Class SignalsHandler
java.lang.Object
com.vaadin.hilla.signals.handler.SignalsHandler
Handler Endpoint for Fullstack Signals' subscription and update events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<com.fasterxml.jackson.databind.JsonNode>subscribe(String providerEndpoint, String providerMethod, String clientSignalId, com.fasterxml.jackson.databind.node.ObjectNode body) Subscribes to a signal.voidUpdates a signal with an event.
-
Constructor Details
-
SignalsHandler
-
-
Method Details
-
subscribe
public reactor.core.publisher.Flux<com.fasterxml.jackson.databind.JsonNode> subscribe(String providerEndpoint, String providerMethod, String clientSignalId, com.fasterxml.jackson.databind.node.ObjectNode body) Subscribes to a signal.- Parameters:
providerEndpoint- the endpoint that provides the signalproviderMethod- the endpoint method that provides the signalclientSignalId- the client signal id- Returns:
- a Flux of JSON events
-
update
public void update(String clientSignalId, com.fasterxml.jackson.databind.node.ObjectNode event) throws EndpointInvocationException.EndpointHttpException Updates a signal with an event.- Parameters:
clientSignalId- the clientSignalId associated with the signal to updateevent- the event to update with- Throws:
EndpointInvocationException.EndpointHttpException
-