public class JetStreamOptions
extends java.lang.Object
Builder
.Modifier and Type | Class and Description |
---|---|
static class |
JetStreamOptions.Builder
JetStreamOptions can be created using a Builder.
|
Modifier and Type | Field and Description |
---|---|
static JetStreamOptions |
DEFAULT_JS_OPTIONS |
static java.time.Duration |
DEFAULT_TIMEOUT
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static JetStreamOptions.Builder |
builder()
Creates a builder for the options.
|
static JetStreamOptions.Builder |
builder(JetStreamOptions jso)
Creates a builder to copy the options.
|
static java.lang.String |
convertDomainToPrefix(java.lang.String domain) |
static JetStreamOptions |
defaultOptions()
Get an instance of JetStreamOptions with all defaults
|
java.lang.String |
getPrefix()
Gets the prefix for this JetStream context.
|
java.time.Duration |
getRequestTimeout()
Gets the request timeout the stream.
|
boolean |
isDefaultPrefix()
Returns true if the prefix for the options is the default prefix.
|
boolean |
isOptOut290ConsumerCreate()
Gets whether the opt-out of the server v2.9.0 consumer create api is set
|
boolean |
isPublishNoAck()
Gets whether the publish no ack flag was set
|
@Deprecated public static final java.time.Duration DEFAULT_TIMEOUT
public static final JetStreamOptions DEFAULT_JS_OPTIONS
public java.time.Duration getRequestTimeout()
public java.lang.String getPrefix()
public boolean isDefaultPrefix()
public boolean isPublishNoAck()
public boolean isOptOut290ConsumerCreate()
public static JetStreamOptions.Builder builder()
public static JetStreamOptions.Builder builder(JetStreamOptions jso)
jso
- an existing JetStreamOptionspublic static JetStreamOptions defaultOptions()
public static java.lang.String convertDomainToPrefix(java.lang.String domain)