Package | Description |
---|---|
com.google.cloud.pubsub.v1 |
A client to Google Cloud Pub/Sub API.
|
Modifier and Type | Method and Description |
---|---|
static Publisher.Builder |
Publisher.newBuilder(String topicName)
Constructs a new
Publisher.Builder using the given topic. |
static Publisher.Builder |
Publisher.newBuilder(com.google.pubsub.v1.TopicName topicName)
Constructs a new
Publisher.Builder using the given topic. |
Publisher.Builder |
Publisher.Builder.setBatchingSettings(BatchingSettings batchingSettings) |
Publisher.Builder |
Publisher.Builder.setChannelProvider(TransportChannelProvider channelProvider)
ChannelProvider to use to create Channels, which must point at Cloud Pub/Sub
endpoint. |
Publisher.Builder |
Publisher.Builder.setCredentialsProvider(CredentialsProvider credentialsProvider)
CredentialsProvider to use to create Credentials to authenticate calls. |
Publisher.Builder |
Publisher.Builder.setExecutorProvider(ExecutorProvider executorProvider)
Gives the ability to set a custom executor to be used by the library.
|
Publisher.Builder |
Publisher.Builder.setHeaderProvider(HeaderProvider headerProvider)
Sets the static header provider.
|
Publisher.Builder |
Publisher.Builder.setRetrySettings(RetrySettings retrySettings)
Configures the Publisher's retry parameters.
|
Publisher.Builder |
Publisher.Builder.setTransform(com.google.api.core.ApiFunction<com.google.pubsub.v1.PubsubMessage,com.google.pubsub.v1.PubsubMessage> messageTransform)
Gives the ability to set an
ApiFunction that will transform the PubsubMessage
before it is sent |
Copyright © 2019 Google LLC. All rights reserved.