Package csw.framework
Class CurrentStatePublisher
java.lang.Object
csw.framework.CurrentStatePublisher
Wrapper API for publishing
CurrentState
of a component
param: publisherActor the wrapped actor
-
Constructor Summary
ConstructorDescriptionCurrentStatePublisher
(akka.actor.typed.ActorRef<PubSub.PublisherMessage<CurrentState>> publisherActor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
publish
(CurrentState currentState) PublishCurrentState
to the subscribed componentsakka.actor.typed.ActorRef<PubSub.PublisherMessage<CurrentState>>
-
Constructor Details
-
CurrentStatePublisher
public CurrentStatePublisher(akka.actor.typed.ActorRef<PubSub.PublisherMessage<CurrentState>> publisherActor)
-
-
Method Details
-
publish
PublishCurrentState
to the subscribed components- Parameters:
currentState
-CurrentState
to be published
-
publisherActor
-