public class PullRequestOptions
extends java.lang.Object
implements io.nats.client.support.JsonSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
PullRequestOptions.Builder
The builder for PullRequestOptions
|
| Constructor and Description |
|---|
PullRequestOptions(PullRequestOptions.Builder b)
Construct PullRequestOptions from the builder
|
| Modifier and Type | Method and Description |
|---|---|
static PullRequestOptions.Builder |
builder(int batchSize)
Creates a builder for the pull options, with batch size since it's always required
|
int |
getBatchSize()
Get the batch size option value
|
java.time.Duration |
getExpiresIn()
Get the expires in option value
|
java.lang.String |
getGroup()
Get the group option
|
java.time.Duration |
getIdleHeartbeat()
Get the idle heartbeat option value
|
long |
getMaxBytes()
Get the max bytes size option value
|
long |
getMinAckPending()
Get the min ack pending setting
|
long |
getMinPending()
Get the min pending setting
|
int |
getPriority()
Get the priority
|
boolean |
isNoWait()
Get the no wait flag value
|
static PullRequestOptions.Builder |
noWait(int batchSize)
Creates a builder for the pull options, setting no wait to true and accepting batch size
|
@NonNull java.lang.String |
toJson() |
public PullRequestOptions(PullRequestOptions.Builder b)
b - the builderpublic @NonNull java.lang.String toJson()
toJson in interface io.nats.client.support.JsonSerializablepublic int getBatchSize()
public long getMaxBytes()
public boolean isNoWait()
public java.time.Duration getExpiresIn()
public java.time.Duration getIdleHeartbeat()
public java.lang.String getGroup()
public int getPriority()
public long getMinPending()
public long getMinAckPending()
public static PullRequestOptions.Builder builder(int batchSize)
batchSize - the size of the batch. Must be greater than 0public static PullRequestOptions.Builder noWait(int batchSize)
batchSize - the size of the batch. Must be greater than 0