Class WrappingPublisher (1.4.12)

public class WrappingPublisher extends ProxyService implements Publisher

Inheritance

java.lang.Object > AbstractApiService > ProxyService > WrappingPublisher

Implements

Publisher

Constructors

WrappingPublisher(Publisher<MessageMetadata> wirePublisher, MessageTransformer<PubsubMessage,Message> transformer)

public WrappingPublisher(Publisher<MessageMetadata> wirePublisher, MessageTransformer<PubsubMessage,Message> transformer)
Parameters
NameDescription
wirePublisherPublisher<MessageMetadata>
transformerMessageTransformer<com.google.pubsub.v1.PubsubMessage,Message>

Methods

publish(PubsubMessage message)

public ApiFuture<String> publish(PubsubMessage message)
Parameter
NameDescription
messagecom.google.pubsub.v1.PubsubMessage
Returns
TypeDescription
ApiFuture<String>