public class PurgeOptions
extends java.lang.Object
implements io.nats.client.support.JsonSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
PurgeOptions.Builder
Builder class for PurgeOptions
|
| Modifier and Type | Method and Description |
|---|---|
static PurgeOptions.Builder |
builder()
Creates a builder for the purge options
|
long |
getKeep()
Get the max number of messages to keep for the Purge Options
|
long |
getSequence()
Get the upper bound sequence for the Purge Options
|
java.lang.String |
getSubject()
Get the subject for the Purge Options
|
static PurgeOptions |
subject(java.lang.String subject)
Creates a completed Purge Options for just a subject
|
@NonNull java.lang.String |
toJson() |
public @NonNull java.lang.String toJson()
toJson in interface io.nats.client.support.JsonSerializablepublic java.lang.String getSubject()
public long getSequence()
public long getKeep()
public static PurgeOptions.Builder builder()
public static PurgeOptions subject(java.lang.String subject)
subject - the subject to purge