public final class CancelFrame extends Object
CANCEL frame.Disposable.Composite, Disposable.SwapFRAME_TYPE_SHIFT| Modifier and Type | Method and Description |
|---|---|
static CancelFrame |
createCancelFrame(ByteBuf byteBuf)
Creates the
CANCEL frame. |
static CancelFrame |
createCancelFrame(ByteBufAllocator byteBufAllocator)
Creates the
CANCEL 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 CancelFrame createCancelFrame(ByteBuf byteBuf)
CANCEL frame.byteBuf - the ByteBuf representing the frameCANCEL frameNullPointerException - if byteBuf is nullpublic static CancelFrame createCancelFrame(ByteBufAllocator byteBufAllocator)
CANCEL frame.byteBufAllocator - the ByteBufAllocator to useCANCEL 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)