Package csw.framework
Class CurrentStatePublisher
- java.lang.Object
-
- csw.framework.CurrentStatePublisher
-
public class CurrentStatePublisher extends java.lang.Object
Wrapper API for publishingCurrentState
of a componentparam: publisherActor the wrapped actor
-
-
Constructor Summary
Constructors Constructor Description CurrentStatePublisher(akka.actor.typed.ActorRef<PubSub.PublisherMessage<CurrentState>> publisherActor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
publish(CurrentState currentState)
PublishCurrentState
to the subscribed componentsakka.actor.typed.ActorRef<PubSub.PublisherMessage<CurrentState>>
publisherActor()
-
-
-
Constructor Detail
-
CurrentStatePublisher
public CurrentStatePublisher(akka.actor.typed.ActorRef<PubSub.PublisherMessage<CurrentState>> publisherActor)
-
-
Method Detail
-
publish
public void publish(CurrentState currentState)
PublishCurrentState
to the subscribed components- Parameters:
currentState
-CurrentState
to be published
-
publisherActor
public akka.actor.typed.ActorRef<PubSub.PublisherMessage<CurrentState>> publisherActor()
-
-