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.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;

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 divconq.http.multipart.AbstractHttpData.java

/**
 * Abstract HttpData implementation
 */
public abstract class AbstractHttpData extends AbstractReferenceCounted implements HttpData {

    private static final Pattern STRIP_PATTERN = Pattern.compile("(?:^\\s+|\\s+$|\\n)");

From source file divconq.http.multipart.InternalAttribute.java

/**
 * This Attribute is only for Encoder use to insert special command between object if needed
 * (like Multipart Mixed mode)
 */
final class InternalAttribute extends AbstractReferenceCounted implements InterfaceHttpData {
    private final List<ByteBuf> value = new ArrayList<ByteBuf>();

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 me.ferrybig.p2pnetwork.codec.packets.Packet.java

/**
 *
 * @author Fernando
 */
public abstract class Packet extends AbstractReferenceCounted {

From source file org.apache.bookkeeper.util.ByteBufList.java

/**
 * ByteBufList is a holder of a sequence of {@link ByteBuf} objects.
 *
 * <p>This class doesn't trying to mimic the {@link ByteBuf}, but rather exposes itself just like a regular object which
 * will need to be encoded on the channel. There are 2 utility encoders:
 * <ul>

From source file org.apache.pulsar.common.api.ByteBufPair.java

/**
 * ByteBuf holder that contains 2 buffers.
 */
public final class ByteBufPair extends AbstractReferenceCounted {

    private ByteBuf b1;

From source file org.apache.pulsar.common.api.raw.ReferenceCountedObject.java

public class ReferenceCountedObject<T> extends AbstractReferenceCounted {

    private final T object;
    private final Consumer<T> destructor;

    public ReferenceCountedObject(T object, Consumer<T> destructor) {

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) {