Search in sources :

Example 1 with UtilsWrapper

use of io.pravega.segmentstore.storage.chunklayer.UtilsWrapper in project pravega by pravega.

the class StreamSegmentContainer method getExtendedChunkInfo.

@SneakyThrows
@Override
public CompletableFuture<List<ExtendedChunkInfo>> getExtendedChunkInfo(String streamSegmentName, Duration timeout) {
    val chunkedSegmentStorage = (ChunkedSegmentStorage) storage;
    UtilsWrapper wrapper = new UtilsWrapper(chunkedSegmentStorage, BUFFER_SIZE, timeout);
    return wrapper.getExtendedChunkInfoList(streamSegmentName, true);
}
Also used : lombok.val(lombok.val) UtilsWrapper(io.pravega.segmentstore.storage.chunklayer.UtilsWrapper) ChunkedSegmentStorage(io.pravega.segmentstore.storage.chunklayer.ChunkedSegmentStorage) SneakyThrows(lombok.SneakyThrows)

Aggregations

ChunkedSegmentStorage (io.pravega.segmentstore.storage.chunklayer.ChunkedSegmentStorage)1 UtilsWrapper (io.pravega.segmentstore.storage.chunklayer.UtilsWrapper)1 SneakyThrows (lombok.SneakyThrows)1 lombok.val (lombok.val)1