public static final class Descriptor.TopicCall<Message> extends Object
Modifier and Type | Method and Description |
---|---|
MessageSerializer<Message,akka.util.ByteString> |
messageSerializer()
Get the topic's message serializer.
|
Descriptor.Properties<Message> |
properties()
Get the properties associated with this topic.
|
Descriptor.TopicHolder |
topicHolder()
Get the topic holder.
|
Topic.TopicId |
topicId()
Get the topic id.
|
Descriptor.TopicCall<Message> |
withMessageSerializer(MessageSerializer<Message,akka.util.ByteString> messageSerializer)
Return a copy of this topic call with the given message serializer configured.
|
<T> Descriptor.TopicCall<Message> |
withProperty(Descriptor.Properties.Property<Message,T> property,
T value)
Return a copy of this copy call with the given property configured.
|
Descriptor.TopicCall<Message> |
withTopicHolder(Descriptor.TopicHolder topicHolder)
Return a copy of this topic call with the given topic holder configured.
|
public Topic.TopicId topicId()
public Descriptor.TopicHolder topicHolder()
public MessageSerializer<Message,akka.util.ByteString> messageSerializer()
public Descriptor.Properties<Message> properties()
public Descriptor.TopicCall<Message> withTopicHolder(Descriptor.TopicHolder topicHolder)
topicHolder
- The topic holder.public Descriptor.TopicCall<Message> withMessageSerializer(MessageSerializer<Message,akka.util.ByteString> messageSerializer)
messageSerializer
- Apublic <T> Descriptor.TopicCall<Message> withProperty(Descriptor.Properties.Property<Message,T> property, T value)
property
- The property key.value
- The value for the property.