Class PubSub.SubscribeOnly<T>

  • Type Parameters:
    T - represents the type of data that is subscribed
    All Implemented Interfaces:
    PubSub<T>, PubSub.SubscriberMessage<T>, TMTSerializable, java.io.Serializable, scala.Equals, scala.Product, scala.Serializable
    Enclosing interface:
    PubSub<T>

    public static class PubSub.SubscribeOnly<T>
    extends java.lang.Object
    implements PubSub.SubscriberMessage<T>, scala.Product, scala.Serializable
    Represents the subscribe action for current states specified by a set of stateNames

    param: ref the reference of subscriber used to notify to when some data is published param: names set of stateNames uniquely representating current states for a component

    See Also:
    Serialized Form
    • Constructor Detail

      • SubscribeOnly

        public SubscribeOnly​(akka.actor.typed.ActorRef<T> ref,
                             scala.collection.immutable.Set<StateName> names)
    • Method Detail

      • ref

        public akka.actor.typed.ActorRef<T> ref()
      • names

        public scala.collection.immutable.Set<StateName> names()