public class OrderedConsumerConfiguration extends java.lang.Object implements JsonSerializable
| Constructor and Description |
|---|
OrderedConsumerConfiguration()
OrderedConsumerConfiguration creation works like a builder.
|
OrderedConsumerConfiguration(JsonValue v) |
OrderedConsumerConfiguration(java.lang.String json) |
| Modifier and Type | Method and Description |
|---|---|
OrderedConsumerConfiguration |
deliverPolicy(DeliverPolicy deliverPolicy)
Sets the delivery policy of the OrderedConsumerConfiguration.
|
OrderedConsumerConfiguration |
filterSubject(java.lang.String filterSubject)
Sets the filter subject of the OrderedConsumerConfiguration.
|
OrderedConsumerConfiguration |
filterSubjects(java.util.List<java.lang.String> filterSubjects)
Sets the filter subject of the OrderedConsumerConfiguration.
|
OrderedConsumerConfiguration |
filterSubjects(java.lang.String... filterSubject)
Sets the filter subjects of the OrderedConsumerConfiguration.
|
DeliverPolicy |
getDeliverPolicy() |
java.lang.String |
getFilterSubject() |
java.util.List<java.lang.String> |
getFilterSubjects() |
java.lang.Boolean |
getHeadersOnly() |
ReplayPolicy |
getReplayPolicy() |
java.lang.Long |
getStartSequence() |
java.time.ZonedDateTime |
getStartTime() |
boolean |
hasMultipleFilterSubjects() |
OrderedConsumerConfiguration |
headersOnly(java.lang.Boolean headersOnly)
set the headers only flag saying to deliver only the headers of
messages in the stream and not the bodies
|
OrderedConsumerConfiguration |
replayPolicy(ReplayPolicy replayPolicy)
Sets the replay policy of the OrderedConsumerConfiguration.
|
OrderedConsumerConfiguration |
startSequence(long startSequence)
Sets the start sequence of the OrderedConsumerConfiguration.
|
OrderedConsumerConfiguration |
startTime(java.time.ZonedDateTime startTime)
Sets the start time of the OrderedConsumerConfiguration.
|
java.lang.String |
toJson()
Returns a JSON representation of this ordered consumer configuration.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitserialize, toJsonValuepublic OrderedConsumerConfiguration()
public OrderedConsumerConfiguration(java.lang.String json)
throws JsonParseException
JsonParseExceptionpublic OrderedConsumerConfiguration(JsonValue v) throws JsonParseException
JsonParseExceptionpublic java.lang.String toJson()
toJson in interface JsonSerializablepublic OrderedConsumerConfiguration filterSubject(java.lang.String filterSubject)
filterSubject - the filter subjectpublic OrderedConsumerConfiguration filterSubjects(java.lang.String... filterSubject)
filterSubject - the filter subjectpublic OrderedConsumerConfiguration filterSubjects(java.util.List<java.lang.String> filterSubjects)
filterSubjects - one or more filter subjectspublic OrderedConsumerConfiguration deliverPolicy(DeliverPolicy deliverPolicy)
deliverPolicy - the delivery policy.public OrderedConsumerConfiguration startSequence(long startSequence)
startSequence - the start sequencepublic OrderedConsumerConfiguration startTime(java.time.ZonedDateTime startTime)
startTime - the start timepublic OrderedConsumerConfiguration replayPolicy(ReplayPolicy replayPolicy)
replayPolicy - the replay policy.public OrderedConsumerConfiguration headersOnly(java.lang.Boolean headersOnly)
headersOnly - the flagpublic java.lang.String getFilterSubject()
public java.util.List<java.lang.String> getFilterSubjects()
public boolean hasMultipleFilterSubjects()
public DeliverPolicy getDeliverPolicy()
public java.lang.Long getStartSequence()
public java.time.ZonedDateTime getStartTime()
public ReplayPolicy getReplayPolicy()
public java.lang.Boolean getHeadersOnly()