@EachProperty(value="gcp.pubsub.subscriber")
public class SubscriberConfigurationProperties
extends java.lang.Object
Subscriber
. Each topic has its own configuration if set by the user.
for example gcp.pubsub.publisher.animals and gcp.pubsub.publisher.cars would define subscribers with different
configurations for each Subscription
.Constructor and Description |
---|
SubscriberConfigurationProperties(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExecutor() |
com.google.api.gax.batching.FlowControlSettings.Builder |
getFlowControlSettings()
Flow Control settings.
|
org.threeten.bp.Duration |
getMaxAckExtensionPeriod()
Set the maximum period a message ack deadline will be extended.
|
org.threeten.bp.Duration |
getMaxDurationPerAckExtension() |
java.lang.String |
getName() |
java.lang.Integer |
getParallelPullCount() |
void |
setExecutor(java.lang.String executor) |
void |
setFlowControlSettings(com.google.api.gax.batching.FlowControlSettings.Builder flowControlSettings)
Flow Control settings.
|
void |
setMaxAckExtensionPeriod(org.threeten.bp.Duration maxAckExtensionPeriod)
Set the maximum period a message ack deadline will be extended.
|
void |
setMaxDurationPerAckExtension(org.threeten.bp.Duration maxDurationPerAckExtension)
Set the upper bound for a single mod ack extention period.
|
void |
setParallelPullCount(java.lang.Integer parallelPullCount) |
public SubscriberConfigurationProperties(@Parameter java.lang.String name)
name
- of this configuration.public java.lang.Integer getParallelPullCount()
public void setParallelPullCount(java.lang.Integer parallelPullCount)
parallelPullCount
- number of concurrent pullspublic org.threeten.bp.Duration getMaxAckExtensionPeriod()
public void setMaxAckExtensionPeriod(org.threeten.bp.Duration maxAckExtensionPeriod)
maxAckExtensionPeriod
- valuepublic org.threeten.bp.Duration getMaxDurationPerAckExtension()
public void setMaxDurationPerAckExtension(org.threeten.bp.Duration maxDurationPerAckExtension)
The ack deadline will continue to be extended by up to this duration until MaxAckExtensionPeriod is reached. Setting MaxDurationPerAckExtension bounds the maximum amount of time before a mesage re-delivery in the event the Subscriber fails to extend the deadline.
MaxDurationPerAckExtension configuration can be disabled by specifying a zero duration.
maxDurationPerAckExtension
- valuepublic java.lang.String getName()
public java.lang.String getExecutor()
public void setExecutor(java.lang.String executor)
executor
- name to be setpublic com.google.api.gax.batching.FlowControlSettings.Builder getFlowControlSettings()
public void setFlowControlSettings(com.google.api.gax.batching.FlowControlSettings.Builder flowControlSettings)
flowControlSettings
- flow control settings