Class PubSubConfigurationProperties
- java.lang.Object
-
- io.micronaut.gcp.pubsub.configuration.PubSubConfigurationProperties
-
@ConfigurationProperties("gcp.pubsub") public class PubSubConfigurationProperties extends java.lang.ObjectConfiguration properties for PubSub support.- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPREFIX
-
Constructor Summary
Constructors Constructor Description PubSubConfigurationProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetKeepAliveIntervalMinutes()How often to ping the server to keep the channel alive.java.lang.StringgetPublishingExecutor()java.lang.StringgetSubscribingExecutor()voidsetKeepAliveIntervalMinutes(int keepAliveIntervalMinutes)How often to ping the server to keep the channel alive.voidsetPublishingExecutor(java.lang.String publishingExecutor)voidsetSubscribingExecutor(java.lang.String subscribingExecutor)
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPublishingExecutor
public java.lang.String getPublishingExecutor()
- Returns:
- the name of the
ScheduledExecutorServiceto be used by allPublisherinstances. Default: "scheduled"
-
setPublishingExecutor
public void setPublishingExecutor(java.lang.String publishingExecutor)
- Parameters:
publishingExecutor- Name of theScheduledExecutorServiceto be used by allPublisherinstances. Default: "scheduled"
-
getSubscribingExecutor
public java.lang.String getSubscribingExecutor()
- Returns:
- the name of the
ScheduledExecutorServiceto be used by allSubscriberinstances. Default: "scheduled" Defaults to "scheduled"
-
setSubscribingExecutor
public void setSubscribingExecutor(java.lang.String subscribingExecutor)
- Parameters:
subscribingExecutor- Name of theScheduledExecutorServiceto be used by allSubscriberinstances. Default: "scheduled"
-
getKeepAliveIntervalMinutes
public int getKeepAliveIntervalMinutes()
How often to ping the server to keep the channel alive. Defaults to 5 minutes.- Returns:
- interval
-
setKeepAliveIntervalMinutes
public void setKeepAliveIntervalMinutes(int keepAliveIntervalMinutes)
How often to ping the server to keep the channel alive. Default: 5 minutes.- Parameters:
keepAliveIntervalMinutes-
-
-