public static class StreamMessagesOptions.Builder extends Object
| Constructor and Description |
|---|
StreamMessagesOptions.Builder() |
| Modifier and Type | Method and Description |
|---|---|
static StreamMessagesOptions |
echo(boolean echo)
The echo parameter determines whether the API returns a client's own messages, as determined by the clientId
(UUID) portion of the client.
|
static StreamMessagesOptions |
includeClaimed(boolean includeClaimed)
The includeClaimed parameter determines whether the API returns claimed messages.
|
static StreamMessagesOptions |
limit(int limit)
When more messages are available than can be returned in a single request, the client can pick up the next
batch of messages by simply using the
StremOptions returned from the previous call in MessageStream#nextStreamOptions(). |
static StreamMessagesOptions |
marker(String marker)
Specifies an opaque string that the client can use to request the next batch of messages.
|
static StreamMessagesOptions |
queryParameters(com.google.common.collect.Multimap<String,String> queryParams) |
public static StreamMessagesOptions queryParameters(com.google.common.collect.Multimap<String,String> queryParams)
public static StreamMessagesOptions marker(String marker)
public static StreamMessagesOptions limit(int limit)
StremOptions returned from the previous call in MessageStream#nextStreamOptions(). Specifies up to 10 messages (the default value) to return. If you do not
specify a value for the limit parameter, the default value of 10 is used.public static StreamMessagesOptions echo(boolean echo)
public static StreamMessagesOptions includeClaimed(boolean includeClaimed)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.