Package energy.eddie.aiida.streamers
Class ConnectionStatusEventStream
java.lang.Object
energy.eddie.aiida.streamers.ConnectionStatusEventStream
Publishes changes of the
ConnectionStatus of permissions as soon as an AiidaStreamer connects to or
disconnects from the EDDIE framework.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<ConnectionStatusEventStream.ConnectionStatusEvent> Returns the connection status changes of all permissions of the passed user.voidpublish(UUID userId, UUID permissionId, ConnectionStatus connectionStatus) Publishes the new connection status of a permission.
-
Constructor Details
-
ConnectionStatusEventStream
public ConnectionStatusEventStream()
-
-
Method Details
-
publish
Publishes the new connection status of a permission. Events are dropped if nobody is subscribed. Synchronized, as streamers publish from their own MQTT client threads. -
events
public reactor.core.publisher.Flux<ConnectionStatusEventStream.ConnectionStatusEvent> events(UUID userId) Returns the connection status changes of all permissions of the passed user.
-