Example usage for io.netty.util AbstractReferenceCounted subclass-usage

List of usage examples for io.netty.util AbstractReferenceCounted subclass-usage

Introduction

In this page you can find the example usage for io.netty.util AbstractReferenceCounted subclass-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.google.devtools.build.lib.remote.ByteStreamUploader.java

/**
 * A client implementing the {@code Write} method of the {@code ByteStream} gRPC service.
 *
 * <p>The uploader supports reference counting to easily be shared between components with
 * different lifecyles. After instantiation the reference coune is {@code 1}.
 *

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.spotify.netty4.handler.codec.zmtp.ZMTPMessage.java

public class ZMTPMessage extends AbstractReferenceCounted implements Iterable<ByteBuf> {

    private final ByteBuf[] frames;

    private ZMTPMessage(final ByteBuf[] frames) {
        this.frames = checkNotNull(frames, "frames");