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
-
Constructor Details
-
SignalsHandler
-
-
Method Details
-
subscribe
public reactor.core.publisher.Flux<tools.jackson.databind.JsonNode> subscribe(String providerEndpoint, String providerMethod, String clientSignalId, tools.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, tools.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
-