Package io.micronaut.nats.connect
Class NatsConnectionFactoryConfig.JetStreamConfiguration.StreamConfiguration
java.lang.Object
io.micronaut.nats.connect.NatsConnectionFactoryConfig.JetStreamConfiguration.StreamConfiguration
- Enclosing class:
- NatsConnectionFactoryConfig.JetStreamConfiguration
@EachProperty("streams")
public static class NatsConnectionFactoryConfig.JetStreamConfiguration.StreamConfiguration
extends Object
Manages a single stream configuration.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionio.nats.client.api.StreamConfiguration.Builderget the stream configuration builder.get the subjects of the stream.booleancreate or update stream during startup.voidsetCreateOrUpdate(boolean createOrUpdate) create or update stream during startup.voidsetSubjects(List<String> subjects) set the subjects.io.nats.client.api.StreamConfigurationreturn the configuration asStreamConfiguration.
- 
Constructor Details- 
StreamConfiguration
 
- 
- 
Method Details- 
getBuilderpublic io.nats.client.api.StreamConfiguration.Builder getBuilder()get the stream configuration builder.- Returns:
- stream configuration builder
 
- 
toStreamConfigurationpublic io.nats.client.api.StreamConfiguration toStreamConfiguration()return the configuration asStreamConfiguration.- Returns:
- nats stream configuration
 
- 
getSubjectsget the subjects of the stream.- Returns:
- the subjects
 
- 
setSubjectsset the subjects.- Parameters:
- subjects- list of subjects
 
- 
isCreateOrUpdatepublic boolean isCreateOrUpdate()create or update stream during startup.- Returns:
- true, if stream should be created or updated
- Since:
- 4.4.0
 
- 
setCreateOrUpdatepublic void setCreateOrUpdate(boolean createOrUpdate) create or update stream during startup.- Parameters:
- createOrUpdate- true to create or update stream during startup
- Since:
- 4.4.0
 
 
-