public class PurgeOptions extends java.lang.Object implements JsonSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
PurgeOptions.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected long |
keep |
protected long |
seq |
protected java.lang.String |
subject |
| 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
|
java.lang.String |
toJson() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserialize, toJsonValueprotected final java.lang.String subject
protected final long seq
protected final long keep
public java.lang.String toJson()
toJson in interface 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