Package io.micronaut.nats.connect
Class NatsConnectionFactoryConfig.JetStreamConfiguration.KeyValueConfiguration
java.lang.Object
io.micronaut.nats.connect.NatsConnectionFactoryConfig.JetStreamConfiguration.KeyValueConfiguration
- Enclosing class:
- NatsConnectionFactoryConfig.JetStreamConfiguration
@EachProperty("keyvalue")
public static class NatsConnectionFactoryConfig.JetStreamConfiguration.KeyValueConfiguration
extends Object
Manages a single key value configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.nats.client.api.KeyValueConfiguration.Builder
get the key value configuration builder.boolean
create or update key/value store during startup.void
setCreateOrUpdate
(boolean createOrUpdate) create or update key/value store during startup.io.nats.client.api.KeyValueConfiguration
return the configuration asKeyValueConfiguration
.
-
Constructor Details
-
KeyValueConfiguration
-
-
Method Details
-
getBuilder
public io.nats.client.api.KeyValueConfiguration.Builder getBuilder()get the key value configuration builder.- Returns:
- key value configuration builder
-
toKeyValueConfiguration
public io.nats.client.api.KeyValueConfiguration toKeyValueConfiguration()return the configuration asKeyValueConfiguration
.- Returns:
- nats key value configuration
-
isCreateOrUpdate
public boolean isCreateOrUpdate()create or update key/value store during startup.- Returns:
- true, if key/value store should be created or updated
- Since:
- 4.4.0
-
setCreateOrUpdate
public void setCreateOrUpdate(boolean createOrUpdate) create or update key/value store during startup.- Parameters:
createOrUpdate
- true to create or update key/value store during startup- Since:
- 4.4.0
-