use of org.apache.ratis.datastream.impl.DataStreamRequestFilePositionCount in project incubator-ratis by apache.
the class NettyDataStreamUtils method encodeDataStreamRequestFilePositionCount.
static void encodeDataStreamRequestFilePositionCount(DataStreamRequestFilePositionCount request, Consumer<Object> out, ByteBufAllocator allocator) {
encodeDataStreamRequestHeader(request, out, allocator);
final FilePositionCount f = request.getFile();
out.accept(new DefaultFileRegion(f.getFile(), f.getPosition(), f.getCount()));
}
Aggregations