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.alibaba.rocketmq.broker.pagecache.ManyMessageTransfer.java

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

From source file com.alibaba.rocketmq.broker.pagecache.OneMessageTransfer.java

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

From source file com.alibaba.rocketmq.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 com.github.sparkfy.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 com.github.sparkfy.network.protocol.MessageWithHeader.java

/**
 * A wrapper message that holds two separate pieces (a header and a body).
 *
 * The header must be a ByteBuf, while the body can be a ByteBuf or a FileRegion.
 */
class MessageWithHeader extends AbstractReferenceCounted implements FileRegion {

From source file com.ict.dtube.broker.pagecache.ManyMessageTransfer.java

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

From source file com.ict.dtube.broker.pagecache.OneMessageTransfer.java

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

From source file com.ict.dtube.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 com.ning.http.client.providers.netty_4.BodyFileRegion.java

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

    private final RandomAccessBody body;

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

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