Example usage for io.netty.util ReferenceCounted interface-usage

List of usage examples for io.netty.util ReferenceCounted interface-usage

Introduction

In this page you can find the example usage for io.netty.util ReferenceCounted interface-usage.

Usage

From source file io.airlift.drift.transport.netty.codec.ThriftFrame.java

public class ThriftFrame implements ReferenceCounted {
    private final int sequenceId;
    private final ByteBuf message;
    private final Map<String, String> headers;
    private final Transport transport;
    private final Protocol protocol;

From source file io.airlift.drift.transport.netty.ssl.TChannelBufferInputTransport.java

@NotThreadSafe
public class TChannelBufferInputTransport implements TTransport, ReferenceCounted {
    private final ByteBuf buffer;

    public TChannelBufferInputTransport(ByteBuf buffer) {
        this.buffer = requireNonNull(buffer, "buffer is null");

From source file io.airlift.drift.transport.netty.ssl.TChannelBufferOutputTransport.java

@NotThreadSafe
public class TChannelBufferOutputTransport implements TTransport, ReferenceCounted {
    private final ByteBuf buffer;

    public TChannelBufferOutputTransport(ByteBufAllocator byteBufAllocator) {
        this(byteBufAllocator.buffer(1024));

From source file io.hekate.network.netty.DeferredEncodedMessage.java

class DeferredEncodedMessage extends DeferredMessage implements ReferenceCounted {
    private final ByteBuf buf;

    public DeferredEncodedMessage(ByteBuf buf, Object source, Channel channel) {
        super(source, channel);

From source file io.jsync.http.impl.ws.DefaultWebSocketFrame.java

/**
 * The default {@link WebSocketFrameInternal} implementation.
 *
 * @author <a href="http://www.jboss.org/netty/">The Netty Project</a>
 * @author <a href="http://gleamynode.net/">Trustin Lee</a>
 * @version $Rev: 2080 $, $Date: 2010-01-26 18:04:19 +0900 (Tue, 26 Jan 2010) $

From source file io.vertx.core.http.impl.ws.WebSocketFrameImpl.java

/**
 * The default {@link WebSocketFrameInternal} implementation.
 *
 * @author <a href="http://www.jboss.org/netty/">The Netty Project</a>
 * @author <a href="http://gleamynode.net/">Trustin Lee</a>
 * @version $Rev: 2080 $, $Date: 2010-01-26 18:04:19 +0900 (Tue, 26 Jan 2010) $

From source file org.apache.bookkeeper.mledger.util.AbstractCASReferenceCounted.java

/**
 * Abstract base class for classes wants to implement {@link ReferenceCounted}.
 */
public abstract class AbstractCASReferenceCounted implements ReferenceCounted {
    private static final AtomicIntegerFieldUpdater<AbstractCASReferenceCounted> refCntUpdater = AtomicIntegerFieldUpdater
            .newUpdater(AbstractCASReferenceCounted.class, "refCnt");

From source file org.dcache.xrootd.protocol.messages.ReadResponse.java

public class ReadResponse implements XrootdResponse<ReadRequest>, ReferenceCounted {
    private final ReadRequest request;
    private final int stat;
    private final ByteBuf data;

    public ReadResponse(ReadRequest request, ByteBuf data, boolean isIncomplete) {

From source file org.dcache.xrootd.util.ByteBuffersProvider.java

/**
 * <p>This interface pulls out the two methods necessary to support the write. </p>
 *
 * <p>The reason for doing so is to avoid an additional buffer copy
 *    in translating a ThirdParty read request response into a write request.</p>
 */

From source file org.elasticsearch.hadoop.http.netty4.pipelining.HttpPipelinedRequest.java

/**
 * Permits downstream channel events to be ordered and signalled as to whether more are to come for
 * a given sequence.
 */
public class HttpPipelinedRequest implements ReferenceCounted {