public static class JetStreamOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Builder(JetStreamOptions jso) |
Modifier and Type | Method and Description |
---|---|
JetStreamOptions |
build()
Builds the JetStream options.
|
JetStreamOptions.Builder |
domain(java.lang.String domain)
Sets the domain for JetStream subjects, creating a standard prefix from that domain
in the form $JS.(domain).API.
|
JetStreamOptions.Builder |
optOut290ConsumerCreate(boolean optOut)
Set whether to opt-out of the server v2.9.0 consumer create api.
|
JetStreamOptions.Builder |
prefix(java.lang.String prefix)
Sets the prefix for JetStream subjects.
|
JetStreamOptions.Builder |
publishNoAck(boolean publishNoAck)
Sets whether the streams in use by contexts created with these options are no-ack streams.
|
JetStreamOptions.Builder |
requestTimeout(java.time.Duration requestTimeout)
Sets the request timeout for JetStream API calls.
|
public Builder()
public Builder(JetStreamOptions jso)
public JetStreamOptions.Builder requestTimeout(java.time.Duration requestTimeout)
requestTimeout
- the duration to wait for responses.public JetStreamOptions.Builder prefix(java.lang.String prefix)
prefix
- the JetStream prefixpublic JetStreamOptions.Builder domain(java.lang.String domain)
domain
- the JetStream domainpublic JetStreamOptions.Builder publishNoAck(boolean publishNoAck)
publishNoAck
- how to treat publishes to the streampublic JetStreamOptions.Builder optOut290ConsumerCreate(boolean optOut)
optOut
- the opt-out flagpublic JetStreamOptions build()