Class PublisherConfigurationProperties
java.lang.Object
io.micronaut.gcp.pubsub.configuration.PublisherConfigurationProperties
Configuration properties for PubSub Publishers. Each topic has its own configuration if set by the user.
for example gcp.pubsub.publisher.animals and gcp.pubsub.publisher.cars would define publishers with different
configurations for each topic.
- Since:
- 2.0.0
- Author:
- Vinicius Carvalho, James Kleeh
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.batching.BatchingSettings.Builder
Controls message publishing batch.com.google.api.gax.batching.FlowControlSettings.Builder
Flow Control settings.getName()
com.google.api.gax.retrying.RetrySettings.Builder
Retry policies.void
setBatchingSettings
(com.google.api.gax.batching.BatchingSettings.Builder batchingSettings) Controls message publishing batch.void
setExecutor
(String executor) void
setFlowControlSettings
(com.google.api.gax.batching.FlowControlSettings.Builder flowControlSettings) Flow Control settings.void
setRetrySettings
(com.google.api.gax.retrying.RetrySettings.Builder retrySettings) Retry policies.
-
Constructor Details
-
PublisherConfigurationProperties
-
-
Method Details
-
getRetrySettings
public com.google.api.gax.retrying.RetrySettings.Builder getRetrySettings()Retry policies.- Returns:
- the retry settings
-
setRetrySettings
public void setRetrySettings(com.google.api.gax.retrying.RetrySettings.Builder retrySettings) Retry policies.- Parameters:
retrySettings
- retry settings
-
getBatchingSettings
public com.google.api.gax.batching.BatchingSettings.Builder getBatchingSettings()Controls message publishing batch.- Returns:
- batchSettings
-
setBatchingSettings
public void setBatchingSettings(com.google.api.gax.batching.BatchingSettings.Builder batchingSettings) Controls message publishing batch.- Parameters:
batchingSettings
- batchingSettings
-
getFlowControlSettings
public com.google.api.gax.batching.FlowControlSettings.Builder getFlowControlSettings()Flow Control settings.- Returns:
- flowControlSettings
-
setFlowControlSettings
public void setFlowControlSettings(com.google.api.gax.batching.FlowControlSettings.Builder flowControlSettings) Flow Control settings.- Parameters:
flowControlSettings
- flow control settings
-
getName
- Returns:
- the name of this configuration
-
getExecutor
- Returns:
- executor name
-
setExecutor
- Parameters:
executor
- name to be set
-