Example usage for io.netty.channel FileRegion interface-usage

List of usage examples for io.netty.channel FileRegion interface-usage

Introduction

In this page you can find the example usage for io.netty.channel FileRegion interface-usage.

Usage

From source file com.ztesoft.zsmart.zmq.broker.pagecache.QueryMessageTransfer.java

/**
 * @author shijia.wxr<vintage.wang@gmail.com>
 * @since 2013-7-26
 */
public class QueryMessageTransfer extends AbstractReferenceCounted implements FileRegion {
    private final ByteBuffer byteBufferHeader;

From source file io.gatling.http.client.body.multipart.impl.MultipartFileRegion.java

public class MultipartFileRegion extends AbstractReferenceCounted implements FileRegion {

    private final List<PartImpl> parts;
    private final long contentLength;
    private boolean done = false;
    private int currentPartIndex;

From source file org.apache.rocketmq.broker.pagecache.ManyMessageTransfer.java

public class ManyMessageTransfer extends AbstractReferenceCounted implements FileRegion {
    private final ByteBuffer byteBufferHeader;
    private final GetMessageResult getMessageResult;
    private long transfered; // the bytes which was transfered already

    public ManyMessageTransfer(ByteBuffer byteBufferHeader, GetMessageResult getMessageResult) {

From source file org.apache.rocketmq.broker.pagecache.OneMessageTransfer.java

public class OneMessageTransfer extends AbstractReferenceCounted implements FileRegion {
    private final ByteBuffer byteBufferHeader;
    private final SelectMappedBufferResult selectMappedBufferResult;
    private long transfered; // the bytes which was transfered already

    public OneMessageTransfer(ByteBuffer byteBufferHeader, SelectMappedBufferResult selectMappedBufferResult) {

From source file org.apache.rocketmq.broker.pagecache.QueryMessageTransfer.java

public class QueryMessageTransfer extends AbstractReferenceCounted implements FileRegion {
    private final ByteBuffer byteBufferHeader;
    private final QueryMessageResult queryMessageResult;
    private long transfered; // the bytes which was transfered already

    public QueryMessageTransfer(ByteBuffer byteBufferHeader, QueryMessageResult queryMessageResult) {

From source file org.apache.spark.network.buffer.LazyFileRegion.java

/**
 * A FileRegion implementation that only creates the file descriptor when the region is being
 * transferred. This cannot be used with Epoll because there is no native support for it.
 * 
 * This is mostly copied from DefaultFileRegion implementation in Netty. In the future, we
 * should push this into Netty so the native Epoll transport can support this feature.

From source file org.apache.spark.network.util.AbstractFileRegion.java

public abstract class AbstractFileRegion extends AbstractReferenceCounted implements FileRegion {

    @Override
    @SuppressWarnings("deprecation")
    public final long transfered() {
        return transferred();

From source file org.asynchttpclient.netty.request.body.BodyFileRegion.java

/**
 * Adapts a {@link RandomAccessBody} to Netty's {@link FileRegion}.
 */
public class BodyFileRegion extends AbstractReferenceCounted implements FileRegion {

    private final RandomAccessBody body;

From source file org.asynchttpclient.providers.netty.request.body.BodyFileRegion.java

/**
 * Adapts a {@link RandomAccessBody} to Netty's {@link FileRegion}.
 */
public class BodyFileRegion extends AbstractReferenceCounted implements FileRegion {

    private final RandomAccessBody body;

From source file org.asynchttpclient.providers.netty.request.BodyFileRegion.java

/**
 * Adapts a {@link RandomAccessBody} to Netty's {@link FileRegion}.
 */
class BodyFileRegion extends AbstractReferenceCounted implements FileRegion {

    private final RandomAccessBody body;