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.node.ObjectNode>
subscribe
(String providerEndpoint, String providerMethod, String clientSignalId, com.fasterxml.jackson.databind.node.ObjectNode body, String parentClientSignalId) Subscribes to a signal.void
Updates a signal with an event.
-
Constructor Details
-
SignalsHandler
-
-
Method Details
-
subscribe
public reactor.core.publisher.Flux<com.fasterxml.jackson.databind.node.ObjectNode> subscribe(String providerEndpoint, String providerMethod, String clientSignalId, com.fasterxml.jackson.databind.node.ObjectNode body, @Nullable String parentClientSignalId) 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.EndpointAccessDeniedException, EndpointInvocationException.EndpointNotFoundException Updates a signal with an event.- Parameters:
clientSignalId
- the clientSignalId associated with the signal to updateevent
- the event to update with- Throws:
EndpointInvocationException.EndpointAccessDeniedException
EndpointInvocationException.EndpointNotFoundException
-