Configuration Reference

Version:4.6.0

Micronaut Nats Config Properties

🔗
Table 1. Configuration Properties for NatsConnectionFactoryConfig$JetStreamConfiguration
Property Type Description

nats.*.jetstream.request-timeout

java.time.Duration

nats.*.jetstream.prefix

java.lang.String

nats.*.jetstream.domain

java.lang.String

nats.*.jetstream.publish-no-ack

boolean

nats.*.jetstream.opt-out290-consumer-create

boolean

nats.*.jetstream.streams

java.util.List

get the stream configurations.

nats.*.jetstream.keyvalue

java.util.List

get the key value configurations.

nats.*.jetstream.objectstore

java.util.List

get the object store configurations.

🔗
Table 2. Configuration Properties for NatsConnectionFactoryConfig$JetStreamConfiguration$StreamConfiguration
Property Type Description

nats.*.jetstream.streams.*.description

java.lang.String

nats.*.jetstream.streams.*.retention-policy

io.nats.client.api.RetentionPolicy

nats.*.jetstream.streams.*.compression-option

io.nats.client.api.CompressionOption

nats.*.jetstream.streams.*.max-consumers

long

nats.*.jetstream.streams.*.max-messages

long

nats.*.jetstream.streams.*.max-messages-per-subject

long

nats.*.jetstream.streams.*.max-bytes

long

nats.*.jetstream.streams.*.max-age

java.time.Duration

nats.*.jetstream.streams.*.maximum-message-size

int

nats.*.jetstream.streams.*.storage-type

io.nats.client.api.StorageType

nats.*.jetstream.streams.*.replicas

int

nats.*.jetstream.streams.*.no-ack

boolean

nats.*.jetstream.streams.*.template-owner

java.lang.String

nats.*.jetstream.streams.*.discard-policy

io.nats.client.api.DiscardPolicy

nats.*.jetstream.streams.*.duplicate-window

java.time.Duration

nats.*.jetstream.streams.*.placement

io.nats.client.api.Placement

nats.*.jetstream.streams.*.republish

io.nats.client.api.Republish

nats.*.jetstream.streams.*.subject-transform

io.nats.client.api.SubjectTransform

nats.*.jetstream.streams.*.consumer-limits

io.nats.client.api.ConsumerLimits

nats.*.jetstream.streams.*.mirror

io.nats.client.api.Mirror

nats.*.jetstream.streams.*.sources

io.nats.client.api.Source

nats.*.jetstream.streams.*.allow-rollup

boolean

nats.*.jetstream.streams.*.allow-direct

boolean

nats.*.jetstream.streams.*.mirror-direct

boolean

nats.*.jetstream.streams.*.deny-delete

boolean

nats.*.jetstream.streams.*.deny-purge

boolean

nats.*.jetstream.streams.*.discard-new-per-subject

boolean

nats.*.jetstream.streams.*.metadata

java.util.Map

nats.*.jetstream.streams.*.first-sequence

long

nats.*.jetstream.streams.*.subjects

java.util.List

get the subjects of the stream.

nats.*.jetstream.streams.*.create-or-update

boolean

create or update stream during startup.

🔗
Table 3. Configuration Properties for NatsConnectionFactoryConfig
Property Type Description

nats.*.addresses

java.util.List

nats.*.username

java.lang.String

nats.*.password

java.lang.String

nats.*.token

java.lang.String

nats.*.max-reconnect

int

nats.*.reconnect-wait

java.time.Duration

nats.*.connection-timeout

java.time.Duration

nats.*.ping-interval

java.time.Duration

nats.*.reconnect-buffer-size

long

nats.*.inbox-prefix

java.lang.String

nats.*.no-echo

boolean

nats.*.utf8-support

boolean

nats.*.credentials

java.lang.String

🔗
Table 4. Configuration Properties for NatsConnectionFactoryConfig$JetStreamConfiguration$ObjectStoreConfiguration
Property Type Description

nats.*.jetstream.objectstore.*.description

java.lang.String

nats.*.jetstream.objectstore.*.max-bucket-size

long

nats.*.jetstream.objectstore.*.ttl

java.time.Duration

nats.*.jetstream.objectstore.*.storage-type

io.nats.client.api.StorageType

nats.*.jetstream.objectstore.*.replicas

int

nats.*.jetstream.objectstore.*.placement

io.nats.client.api.Placement

nats.*.jetstream.objectstore.*.compression

boolean

nats.*.jetstream.objectstore.*.metadata

java.util.Map

nats.*.jetstream.objectstore.*.create

boolean

create object store during startup.

🔗
Table 5. Configuration Properties for NatsConnectionFactoryConfig$JetStreamConfiguration$KeyValueConfiguration
Property Type Description

nats.*.jetstream.keyvalue.*.description

java.lang.String

nats.*.jetstream.keyvalue.*.max-history-per-key

int

nats.*.jetstream.keyvalue.*.max-bucket-size

long

nats.*.jetstream.keyvalue.*.maximum-value-size

int

nats.*.jetstream.keyvalue.*.ttl

java.time.Duration

nats.*.jetstream.keyvalue.*.storage-type

io.nats.client.api.StorageType

nats.*.jetstream.keyvalue.*.replicas

int

nats.*.jetstream.keyvalue.*.placement

io.nats.client.api.Placement

nats.*.jetstream.keyvalue.*.compression

boolean

nats.*.jetstream.keyvalue.*.metadata

java.util.Map

nats.*.jetstream.keyvalue.*.republish

io.nats.client.api.Republish

nats.*.jetstream.keyvalue.*.mirror

io.nats.client.api.Mirror

nats.*.jetstream.keyvalue.*.create-or-update

boolean

create or update key/value store during startup.

🔗
Table 6. Configuration Properties for NatsConnectionFactoryConfig$TLS
Property Type Description

nats.*.tls.trust-store-path

java.lang.String

nats.*.tls.trust-store-password

java.lang.String

nats.*.tls.trust-store-type

java.lang.String

nats.*.tls.certificate-path

java.lang.String