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 TypeMethodDescriptionint
How often to ping the server to keep the channel alive.Which endpoint thePublisher
should publish messages to.void
setKeepAliveIntervalMinutes
(int keepAliveIntervalMinutes) How often to ping the server to keep the channel alive.void
setPublishingExecutor
(String publishingExecutor) void
setSubscribingExecutor
(String subscribingExecutor) void
setTopicEndpoint
(String topicEndpoint)
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
PubSubConfigurationProperties
public PubSubConfigurationProperties()
-
-
Method Details
-
getPublishingExecutor
- Returns:
- the name of the
ScheduledExecutorService
to be used by allPublisher
instances. Default: "scheduled"
-
setPublishingExecutor
- Parameters:
publishingExecutor
- Name of theScheduledExecutorService
to be used by allPublisher
instances. Default: "scheduled"
-
getSubscribingExecutor
- Returns:
- the name of the
ScheduledExecutorService
to be used by allSubscriber
instances. Default: "scheduled" Defaults to "scheduled"
-
setSubscribingExecutor
- Parameters:
subscribingExecutor
- Name of theScheduledExecutorService
to be used by allSubscriber
instances. 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 thePublisher
should publish messages to. Defaults to the global endpoint- Returns:
- endpoint
-
setTopicEndpoint
- Parameters:
topicEndpoint
- to be used by allPublisher
instances. Default: "" (i.e. the global endpoint)
-