public class PubSubConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PubSubConfiguration.Batching
Batching settings.
|
static class |
PubSubConfiguration.FlowControl
flow control settings.
|
static class |
PubSubConfiguration.Health
Health Check settings.
|
static class |
PubSubConfiguration.Publisher
Publisher settings.
|
static class |
PubSubConfiguration.Retry
Retry settings.
|
static class |
PubSubConfiguration.Subscriber
Subscriber settings.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_EXECUTOR_THREADS
Default number of executor threads.
|
Constructor and Description |
---|
PubSubConfiguration() |
public static final int DEFAULT_EXECUTOR_THREADS
public PubSubConfiguration.Subscriber getSubscriber()
public PubSubConfiguration.Publisher getPublisher()
public PubSubConfiguration.Health getHealth()
public ConcurrentMap<String,PubSubConfiguration.Subscriber> getSubscription()
public PubSubConfiguration.Subscriber getSubscriber(String name, String projectId)
public PubSubConfiguration.FlowControl computeSubscriberFlowControlSettings(String subscriptionName, String projectId)
subscriptionName
- subscription nameprojectId
- project idpublic Integer computeParallelPullCount(String subscriptionName, String projectId)
subscriptionName
- subscription nameprojectId
- project idpublic com.google.api.gax.rpc.StatusCode.Code[] computeRetryableCodes(String subscriptionName, String projectId)
subscriptionName
- subscription nameprojectId
- project idpublic Long computeMaxAckExtensionPeriod(String subscriptionName, String projectId)
subscriptionName
- subscription nameprojectId
- project idpublic String computePullEndpoint(String subscriptionName, String projectId)
subscriptionName
- subscription nameprojectId
- project idpublic PubSubConfiguration.Retry computeSubscriberRetrySettings(String subscriptionName, String projectId)
subscriptionName
- subscription nameprojectId
- project idCopyright © 2021. All rights reserved.