public final class HttpSegmentChangeFetcher extends Object implements SegmentChangeFetcher
| Modifier and Type | Method and Description |
|---|---|
static HttpSegmentChangeFetcher |
create(org.apache.http.impl.client.CloseableHttpClient client,
URI root) |
static HttpSegmentChangeFetcher |
create(org.apache.http.impl.client.CloseableHttpClient client,
URI root,
Metrics metrics) |
SegmentChange |
fetch(String segmentName,
long since)
If the segment does not exist, then return the an empty segment change
with the latest change number set to a value less than 0.
|
public static HttpSegmentChangeFetcher create(org.apache.http.impl.client.CloseableHttpClient client, URI root) throws URISyntaxException
URISyntaxExceptionpublic static HttpSegmentChangeFetcher create(org.apache.http.impl.client.CloseableHttpClient client, URI root, Metrics metrics) throws URISyntaxException
URISyntaxExceptionpublic SegmentChange fetch(String segmentName, long since)
SegmentChangeFetcherfetch in interface SegmentChangeFetchersegmentName - the name of the segment to fetch.since - a value less than zero implies that the client is
requesting information on this segment for the first time.Copyright © 2018. All rights reserved.