Class InternalSignal
java.lang.Object
com.vaadin.hilla.signals.internal.InternalSignal
A proxy for a signal instance that allows subscribing to it and submitting
commands.
This is internal API and should not be used outside the framework.
-
Constructor Summary
ConstructorsConstructorDescriptionInternalSignal(AbstractSignal<?> signal, tools.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionid()voidSubmits an commandJson to the signal and notifies subscribers about the change of the signal value.reactor.core.publisher.Flux<tools.jackson.databind.JsonNode> Subscribes to the signal.
-
Constructor Details
-
InternalSignal
-
-
Method Details
-
id
-
subscribe
public reactor.core.publisher.Flux<tools.jackson.databind.JsonNode> subscribe(String clientSignalId) Subscribes to the signal.- Parameters:
clientSignalId- the clientSignalId associated with the signal to update- Returns:
- a Flux of JSON events
-
submit
Submits an commandJson to the signal and notifies subscribers about the change of the signal value.- Parameters:
clientSignalId- the clientSignalId associated with the signal to updatecommandJson- the command to submit in JSON format
-