public final class HttpSplitChangeFetcher extends Object implements SplitChangeFetcher
| Modifier and Type | Method and Description |
|---|---|
static HttpSplitChangeFetcher |
create(org.apache.http.impl.client.CloseableHttpClient client,
URI root) |
static HttpSplitChangeFetcher |
create(org.apache.http.impl.client.CloseableHttpClient client,
URI root,
Metrics metrics) |
SplitChange |
fetch(long since)
The returned list should contain AT MOST one split
per name.
|
public static HttpSplitChangeFetcher create(org.apache.http.impl.client.CloseableHttpClient client, URI root) throws URISyntaxException
URISyntaxExceptionpublic static HttpSplitChangeFetcher create(org.apache.http.impl.client.CloseableHttpClient client, URI root, Metrics metrics) throws URISyntaxException
URISyntaxExceptionpublic SplitChange fetch(long since)
SplitChangeFetcherfetch in interface SplitChangeFetchersince - a value less than zero implies that the client is
requesting information on partitions for the first time.Copyright © 2018. All rights reserved.