Class WrappingPublisher (1.13.7)

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
Name Description
wirePublisher Publisher<MessageMetadata>
transformer MessageTransformer<com.google.pubsub.v1.PubsubMessage,Message>

Methods

publish(PubsubMessage message)

public ApiFuture<String> publish(PubsubMessage message)
Parameter
Name Description
message com.google.pubsub.v1.PubsubMessage
Returns
Type Description
ApiFuture<String>