Package io.micronaut.nats.connect
Class NatsConnectionFactoryConfig.JetStreamConfiguration.ObjectStoreConfiguration
java.lang.Object
io.micronaut.nats.connect.NatsConnectionFactoryConfig.JetStreamConfiguration.ObjectStoreConfiguration
- Enclosing class:
- NatsConnectionFactoryConfig.JetStreamConfiguration
@EachProperty("objectstore")
public static class NatsConnectionFactoryConfig.JetStreamConfiguration.ObjectStoreConfiguration
extends Object
Manages a single object store configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.nats.client.api.ObjectStoreConfiguration.Builder
get the object store configuration builder.boolean
isCreate()
create object store during startup.void
setCreate
(boolean create) create store during startup.io.nats.client.api.ObjectStoreConfiguration
return the configuration asObjectStoreConfiguration
.
-
Constructor Details
-
ObjectStoreConfiguration
-
-
Method Details
-
getBuilder
public io.nats.client.api.ObjectStoreConfiguration.Builder getBuilder()get the object store configuration builder.- Returns:
- object store configuration builder
-
toObjectStoreConfiguration
public io.nats.client.api.ObjectStoreConfiguration toObjectStoreConfiguration()return the configuration asObjectStoreConfiguration
.- Returns:
- nats object store configuration
-
isCreate
public boolean isCreate()create object store during startup.- Returns:
- true, if object store should be created at startup
- Since:
- 4.4.0
-
setCreate
public void setCreate(boolean create) create store during startup.- Parameters:
create
- true to create object store during startup- Since:
- 4.4.0
-