Top Fields Constructors Methods
io.netty.channel.epoll

pack-priv Class EpollRecvByteAllocatorHandle

extends DelegatingHandle
implements ExtendedHandle
Class Inheritance
All Implemented Interfaces
io.netty.channel.RecvByteBufAllocator.ExtendedHandle, io.netty.channel.RecvByteBufAllocator.Handle
Known Direct Subclasses
io.netty.channel.epoll.EpollRecvByteAllocatorStreamingHandle
Imports
io.netty.buffer.ByteBuf, .ByteBufAllocator, io.netty.channel.RecvByteBufAllocator.DelegatingHandle, .RecvByteBufAllocator.ExtendedHandle, io.netty.channel.unix.PreferredDirectByteBufAllocator, io.netty.util.UncheckedBooleanSupplier

Deprecated

as a consequence of RecvByteBufAllocator.DelegatingHandle and RecvByteBufAllocator.ExtendedHandle being deprecated. See corresponding docs for further information.

Field Summary

Modifier and TypeField and Description
private final UncheckedBooleanSupplier
private boolean
private final PreferredDirectByteBufAllocator
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final ByteBuf
allocate(ByteBufAllocator alloc)

Overrides io.netty.channel.RecvByteBufAllocator.DelegatingHandle.allocate.

Implements io.netty.channel.RecvByteBufAllocator.Handle.allocate.

Creates a new receive buffer whose capacity is probably large enough to read all inbound data and small enough not to waste its space.
public final boolean
continueReading(UncheckedBooleanSupplier
A supplier that determines if there maybe more data to read.
maybeMoreDataSupplier
)

Implements io.netty.channel.RecvByteBufAllocator.ExtendedHandle.continueReading.

Same as Handle#continueReading() except "more data" is determined by the supplier parameter.
public final boolean
pack-priv final void
edgeTriggered(boolean edgeTriggered)

pack-priv final boolean
pack-priv final boolean
pack-priv boolean
pack-priv final void
Inherited from io.netty.channel.RecvByteBufAllocator.DelegatingHandle:
attemptedBytesReadattemptedBytesReaddelegateguessincMessagesReadlastBytesReadlastBytesReadreadCompletereset

Field Detail

defaultMaybeMoreDataSupplierback to summary
private final UncheckedBooleanSupplier defaultMaybeMoreDataSupplier
isEdgeTriggeredback to summary
private boolean isEdgeTriggered
preferredDirectByteBufAllocatorback to summary
private final PreferredDirectByteBufAllocator preferredDirectByteBufAllocator
receivedRdHupback to summary
private boolean receivedRdHup

Constructor Detail

EpollRecvByteAllocatorHandleback to summary
pack-priv EpollRecvByteAllocatorHandle(RecvByteBufAllocator.ExtendedHandle handle)

Deprecated

as a consequence of RecvByteBufAllocator.ExtendedHandle being deprecated. See corresponding docs for further information.

Method Detail

allocateback to summary
public final ByteBuf allocate(ByteBufAllocator alloc)

Overrides io.netty.channel.RecvByteBufAllocator.DelegatingHandle.allocate.

Implements io.netty.channel.RecvByteBufAllocator.Handle.allocate.

Doc from io.netty.channel.RecvByteBufAllocator.Handle.allocate.

Creates a new receive buffer whose capacity is probably large enough to read all inbound data and small enough not to waste its space.

Annotations
@Override
continueReadingback to summary
public final boolean continueReading(UncheckedBooleanSupplier maybeMoreDataSupplier)

Implements io.netty.channel.RecvByteBufAllocator.ExtendedHandle.continueReading.

Doc from io.netty.channel.RecvByteBufAllocator.ExtendedHandle.continueReading.

Same as Handle#continueReading() except "more data" is determined by the supplier parameter.

Parameters
maybeMoreDataSupplier:UncheckedBooleanSupplier

A supplier that determines if there maybe more data to read.

Annotations
@Override
continueReadingback to summary
public final boolean continueReading()

Overrides io.netty.channel.RecvByteBufAllocator.DelegatingHandle.continueReading.

Implements io.netty.channel.RecvByteBufAllocator.Handle.continueReading.

Doc from io.netty.channel.RecvByteBufAllocator.Handle.continueReading.

Determine if the current read loop should continue.

Returns:boolean

true if the read loop should continue reading. false if the read loop is complete.

Annotations
@Override
edgeTriggeredback to summary
pack-priv final void edgeTriggered(boolean edgeTriggered)
isEdgeTriggeredback to summary
pack-priv final boolean isEdgeTriggered()
isReceivedRdHupback to summary
pack-priv final boolean isReceivedRdHup()
maybeMoreDataToReadback to summary
pack-priv boolean maybeMoreDataToRead()
receivedRdHupback to summary
pack-priv final void receivedRdHup()