public class FeedClient.FeedRequest extends Object
| Modifier and Type | Method and Description |
|---|---|
FeedClient.FeedRequest |
eagerFetching(boolean eagerFetching) |
FeedResponse |
execute(long since)
Executes a poll starting at given sequence number.
|
void |
execute(long since,
FeedEntryHandler feedEntryHandler)
Executes a poll starting at given sequence number.
|
FeedClient.FeedRequest |
limit(int limit) |
void |
subscribe(FeedEntryHandler feedEntryHandler)
Starts subscribing to the feed starting at the beginning.
|
void |
subscribe(long since,
FeedEntryHandler feedEntryHandler)
Starts subscribing to the feed starting at given sequence number.
|
FeedClient.FeedRequest |
subscriptionPollDelay(Duration pollDelay) |
public FeedClient.FeedRequest limit(int limit)
limit - Maximum number of returned feed entries per server response.public FeedClient.FeedRequest eagerFetching(boolean eagerFetching)
eagerFetching - True if the client should continue to fetch event within the same poll as long as there
are more available. Default is true.public FeedClient.FeedRequest subscriptionPollDelay(Duration pollDelay)
pollDelay - Desired delay between feed polls. Must be between 1s and 60s. Default is 1s.public FeedResponse execute(long since)
since - Sequence number to start feeding from. Zero (0) starts from the beginning.public void execute(long since,
FeedEntryHandler feedEntryHandler)
since - Sequence number to start feeding from. Zero (0) starts from the beginning.feedEntryHandler - Handler invoked for each received entrypublic void subscribe(FeedEntryHandler feedEntryHandler)
feedEntryHandler - Handler invoked for each received entrypublic void subscribe(long since,
FeedEntryHandler feedEntryHandler)
feedEntryHandler - Handler invoked for each received entryCopyright © 2019. All rights reserved.