protected abstract static class FeatureOptions.Builder<B,FO>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(FeatureOptions oso) |
Modifier and Type | Method and Description |
---|---|
abstract FO |
build()
Builds the Feature options.
|
protected abstract B |
getThis() |
B |
jetStreamOptions(JetStreamOptions jso)
Sets the JetStreamOptions.
|
B |
jsDomain(java.lang.String domain)
Sets the domain for JetStream subjects, creating a standard prefix from that domain
in the form $JS.(domain).API.
|
B |
jsPrefix(java.lang.String prefix)
Sets the prefix for JetStream subjects.
|
B |
jsRequestTimeout(java.time.Duration requestTimeout)
Sets the request timeout for JetStream API calls.
|
protected Builder()
protected Builder(FeatureOptions oso)
protected abstract B getThis()
public B jetStreamOptions(JetStreamOptions jso)
jso
- the JetStreamOptionspublic B jsRequestTimeout(java.time.Duration requestTimeout)
requestTimeout
- the duration to wait for responses.public B jsPrefix(java.lang.String prefix)
prefix
- the JetStream prefixpublic B jsDomain(java.lang.String domain)
domain
- the JetStream domainpublic abstract FO build()