use of io.pravega.client.netty.impl.RawClient in project pravega by pravega.
the class SegmentMetadataClientImpl method getStreamSegmentInfo.
private CompletableFuture<StreamSegmentInfo> getStreamSegmentInfo(String delegationToken) {
long requestId = requestIdGenerator.get();
log.debug("Getting segment info for segment: {}", segmentId);
RawClient connection = getConnection();
return connection.sendRequest(requestId, new GetStreamSegmentInfo(requestId, segmentId.getScopedName(), delegationToken)).thenApply(r -> transformReply(r, StreamSegmentInfo.class));
}
Aggregations