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
ConstructorsConstructorDescriptionCurrentStatePublisher(akka.actor.typed.ActorRef<PubSub.PublisherMessage<CurrentState>> publisherActor) -
Method Summary
Modifier and TypeMethodDescriptionvoidpublish(CurrentState currentState) PublishCurrentStateto 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
PublishCurrentStateto the subscribed components- Parameters:
currentState-CurrentStateto be published
-
publisherActor
-