public final class RequestNFrame extends Object
REQUEST_N frame.Disposable.Composite, Disposable.SwapFRAME_TYPE_SHIFT| Modifier and Type | Method and Description |
|---|---|
static RequestNFrame |
createRequestNFrame(ByteBuf byteBuf)
Creates the
REQUEST_N frame. |
static RequestNFrame |
createRequestNFrame(ByteBufAllocator byteBufAllocator,
int requestN)
Creates the
REQUEST_N frame. |
void |
dispose() |
boolean |
equals(Object o) |
FrameType |
getFrameType()
Returns the
FrameType. |
ByteBuf |
getUnsafeFrame()
Returns the frame directly.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitconsumeFrame, mapFrameisDisposedpublic static RequestNFrame createRequestNFrame(ByteBuf byteBuf)
REQUEST_N frame.byteBuf - the ByteBuf representing the frameREQUEST_N frame.NullPointerException - if byteBuf is nullpublic static RequestNFrame createRequestNFrame(ByteBufAllocator byteBufAllocator, int requestN)
REQUEST_N frame.byteBufAllocator - the ByteBufAllocator to userequestN - the size of the request. Must be positive.REQUEST_N frameNullPointerException - if byteBufAllocator is nullpublic final void dispose()
dispose in interface Disposablepublic FrameType getFrameType()
FrameFrameType.getFrameType in interface FrameFrameTypepublic final ByteBuf getUnsafeFrame()
FrameNote: this frame will be outside of the Frame's lifecycle and may be released
at any time. It is highly recommended that you ByteBuf.retain() the frame if you store
it.
getUnsafeFrame in interface FrameFrame.consumeFrame(Consumer),
Frame.mapFrame(Function)