Class: TopicFactory

TopicFactory(actorRequestFactorynon-null)

A factory of Topic instances. Uses the given ActorRequestFactory as the source of the topic meta information, such as the actor.

Constructor

new TopicFactory(actorRequestFactorynon-null)

Parameters:
Name Type Description
actorRequestFactory ActorRequestFactory
Source:
See:
  • ActorRequestFactory#topic()

Methods

compose(forTargetnon-null, withMasknullable) → {Topic}

Creates a `Topic` for the specified `Target`.
Parameters:
Name Type Attributes Description
forTarget Target a `Target` to create a topic for
withMask FieldMask <nullable>
a mask specifying fields to be returned
Source:
Returns:
the instance of `Topic`
Type
Topic

select(entitynon-null) → {TopicBuilder}

Creates a new builder of `Topic` instances of the provided type.
Parameters:
Name Type Description
entity Class.<Message> a Protobuf type of the subscription target entities
Source:
Returns:
Type
TopicBuilder