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 Details

    • KeyValueConfiguration

      public KeyValueConfiguration(@Parameter String name)
  • 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 as KeyValueConfiguration.
      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