Class EpollRecvByteAllocatorHandle
java.lang.Object
io.netty.channel.RecvByteBufAllocator.DelegatingHandle
io.netty.channel.epoll.EpollRecvByteAllocatorHandle
- All Implemented Interfaces:
RecvByteBufAllocator.ExtendedHandle, RecvByteBufAllocator.Handle
- Direct Known Subclasses:
EpollRecvByteAllocatorStreamingHandle
class EpollRecvByteAllocatorHandle
extends RecvByteBufAllocator.DelegatingHandle
implements RecvByteBufAllocator.ExtendedHandle
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UncheckedBooleanSupplierprivate booleanprivate final PreferredDirectByteBufAllocatorprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ByteBufallocate(ByteBufAllocator alloc) Creates a new receive buffer whose capacity is probably large enough to read all inbound data and small enough not to waste its space.final booleanDetermine if the current read loop should continue.final booleancontinueReading(UncheckedBooleanSupplier maybeMoreDataSupplier) Same asRecvByteBufAllocator.Handle.continueReading()except "more data" is determined by the supplier parameter.(package private) final voidedgeTriggered(boolean edgeTriggered) (package private) final boolean(package private) final boolean(package private) boolean(package private) final voidMethods inherited from class RecvByteBufAllocator.DelegatingHandle
attemptedBytesRead, attemptedBytesRead, delegate, guess, incMessagesRead, lastBytesRead, lastBytesRead, readComplete, resetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RecvByteBufAllocator.Handle
attemptedBytesRead, attemptedBytesRead, guess, incMessagesRead, lastBytesRead, lastBytesRead, readComplete, reset
-
Field Details
-
preferredDirectByteBufAllocator
-
defaultMaybeMoreDataSupplier
-
isEdgeTriggered
private boolean isEdgeTriggered -
receivedRdHup
private boolean receivedRdHup
-
-
Constructor Details
-
EpollRecvByteAllocatorHandle
EpollRecvByteAllocatorHandle(RecvByteBufAllocator.ExtendedHandle handle)
-
-
Method Details
-
receivedRdHup
final void receivedRdHup() -
isReceivedRdHup
final boolean isReceivedRdHup() -
maybeMoreDataToRead
boolean maybeMoreDataToRead() -
edgeTriggered
final void edgeTriggered(boolean edgeTriggered) -
isEdgeTriggered
final boolean isEdgeTriggered() -
allocate
Description copied from interface:RecvByteBufAllocator.HandleCreates a new receive buffer whose capacity is probably large enough to read all inbound data and small enough not to waste its space.- Specified by:
allocatein interfaceRecvByteBufAllocator.Handle- Overrides:
allocatein classRecvByteBufAllocator.DelegatingHandle
-
continueReading
Description copied from interface:RecvByteBufAllocator.ExtendedHandleSame asRecvByteBufAllocator.Handle.continueReading()except "more data" is determined by the supplier parameter.- Specified by:
continueReadingin interfaceRecvByteBufAllocator.ExtendedHandle- Parameters:
maybeMoreDataSupplier- A supplier that determines if there maybe more data to read.
-
continueReading
public final boolean continueReading()Description copied from interface:RecvByteBufAllocator.HandleDetermine if the current read loop should continue.- Specified by:
continueReadingin interfaceRecvByteBufAllocator.Handle- Overrides:
continueReadingin classRecvByteBufAllocator.DelegatingHandle- Returns:
trueif the read loop should continue reading.falseif the read loop is complete.
-