public class ReadMessagesOptions extends Object
Constructor and Description |
---|
ReadMessagesOptions()
No args constructor for use in serialization
|
ReadMessagesOptions(Long desiredStartSequenceNumber,
Long minMessageCount,
Long maxMessageCount,
Long readTimeoutMillis) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Long |
getDesiredStartSequenceNumber()
The desired beginning sequence number to start reading from.
|
Long |
getMaxMessageCount()
The maximum number of messages that will be returned.
|
Long |
getMinMessageCount()
The minimum number of messages that will be returned.
|
Long |
getReadTimeoutMillis()
The time to wait for messages in milliseconds.
|
int |
hashCode() |
void |
setDesiredStartSequenceNumber(Long desiredStartSequenceNumber)
The desired beginning sequence number to start reading from.
|
void |
setMaxMessageCount(Long maxMessageCount)
The maximum number of messages that will be returned.
|
void |
setMinMessageCount(Long minMessageCount)
The minimum number of messages that will be returned.
|
void |
setReadTimeoutMillis(Long readTimeoutMillis)
The time to wait for messages in milliseconds.
|
String |
toString() |
ReadMessagesOptions |
withDesiredStartSequenceNumber(Long desiredStartSequenceNumber) |
ReadMessagesOptions |
withMaxMessageCount(Long maxMessageCount) |
ReadMessagesOptions |
withMinMessageCount(Long minMessageCount) |
ReadMessagesOptions |
withReadTimeoutMillis(Long readTimeoutMillis) |
public ReadMessagesOptions()
public Long getDesiredStartSequenceNumber()
public void setDesiredStartSequenceNumber(Long desiredStartSequenceNumber)
public ReadMessagesOptions withDesiredStartSequenceNumber(Long desiredStartSequenceNumber)
public Long getMinMessageCount()
public void setMinMessageCount(Long minMessageCount)
public ReadMessagesOptions withMinMessageCount(Long minMessageCount)
public Long getMaxMessageCount()
public void setMaxMessageCount(Long maxMessageCount)
public ReadMessagesOptions withMaxMessageCount(Long maxMessageCount)
public Long getReadTimeoutMillis()
public void setReadTimeoutMillis(Long readTimeoutMillis)
public ReadMessagesOptions withReadTimeoutMillis(Long readTimeoutMillis)