public final class HttpSegmentChangeFetcher extends Object implements SegmentChangeFetcher
| Modifier and Type | Method and Description |
|---|---|
static HttpSegmentChangeFetcher |
create(org.apache.hc.client5.http.impl.classic.CloseableHttpClient client,
URI root,
TelemetryRuntimeProducer telemetryRuntimeProducer) |
SegmentChange |
fetch(String segmentName,
long since,
FetchOptions options)
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.hc.client5.http.impl.classic.CloseableHttpClient client, URI root, TelemetryRuntimeProducer telemetryRuntimeProducer) throws URISyntaxException
URISyntaxExceptionpublic SegmentChange fetch(String segmentName, long since, FetchOptions options)
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 © 2021. All rights reserved.