Class PubSubConfigurationProperties
java.lang.Object
io.micronaut.gcp.pubsub.configuration.PubSubConfigurationProperties
Configuration properties for PubSub support.
- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintHow often to ping the server to keep the channel alive.Which endpoint thePublishershould publish messages to.voidsetKeepAliveIntervalMinutes(int keepAliveIntervalMinutes) How often to ping the server to keep the channel alive.voidsetPublishingExecutor(String publishingExecutor) voidsetSubscribingExecutor(String subscribingExecutor) voidsetTopicEndpoint(String topicEndpoint)
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
PubSubConfigurationProperties
public PubSubConfigurationProperties()
-
-
Method Details
-
getPublishingExecutor
- Returns:
- the name of the
ScheduledExecutorServiceto be used by allPublisherinstances. Default: "scheduled"
-
setPublishingExecutor
- Parameters:
publishingExecutor- Name of theScheduledExecutorServiceto be used by allPublisherinstances. Default: "scheduled"
-
getSubscribingExecutor
- Returns:
- the name of the
ScheduledExecutorServiceto be used by allSubscriberinstances. Default: "scheduled" Defaults to "scheduled"
-
setSubscribingExecutor
- 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-
-
getTopicEndpoint
Which endpoint thePublishershould publish messages to. Defaults to the global endpoint- Returns:
- endpoint
-
setTopicEndpoint
- Parameters:
topicEndpoint- to be used by allPublisherinstances. Default: "" (i.e. the global endpoint)
-