We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.hilla.signals.handler.
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 idReturns:
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 withThrows:
-