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

From source file org.asynchttpclient.providers.netty4.BodyFileRegion.java

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

    private final RandomAccessBody body;

From source file org.asynchttpclient.providers.netty4.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.base.netty.http.buffer.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 {