public final class MetadataPushFrame extends Object
METADATA_PUSH frame.Disposable.Composite, Disposable.SwapFRAME_TYPE_SHIFT| Modifier and Type | Method and Description |
|---|---|
static MetadataPushFrame |
createMetadataPushFrame(ByteBuf byteBuf)
Creates the
METADATA_PUSH frame. |
static MetadataPushFrame |
createMetadataPushFrame(ByteBufAllocator byteBufAllocator,
ByteBuf metadata)
Creates the
METADATA_PUSH frame. |
static MetadataPushFrame |
createMetadataPushFrame(ByteBufAllocator byteBufAllocator,
String metadata)
Creates the
METADATA_PUSH frame. |
void |
dispose() |
boolean |
equals(Object o) |
FrameType |
getFrameType()
Returns the
FrameType. |
ByteBuf |
getUnsafeFrame()
Returns the frame directly.
|
ByteBuf |
getUnsafeMetadata()
Returns the metadata directly.
|
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMetadataAsUtf8, getMetadataLength, getUnsafeMetadataAsUtf8, getUnsafeMetadataLength, mapMetadataconsumeFrame, getFrameType, getUnsafeFrame, mapFramedispose, isDisposedpublic static MetadataPushFrame createMetadataPushFrame(ByteBuf byteBuf)
METADATA_PUSH frame.byteBuf - the ByteBuf representing the frameMETADATA_PUSH frame.NullPointerException - if byteBuf is nullpublic static MetadataPushFrame createMetadataPushFrame(ByteBufAllocator byteBufAllocator, String metadata)
METADATA_PUSH frame.byteBufAllocator - the ByteBufAllocator to usemetadata - the metadataMETADATA_PUSH frameNullPointerException - if byteBufAllocator or metadata is nullpublic static MetadataPushFrame createMetadataPushFrame(ByteBufAllocator byteBufAllocator, ByteBuf metadata)
METADATA_PUSH frame.byteBufAllocator - the ByteBufAllocator to usemetadata - the metadataMETADATA_PUSH frameNullPointerException - if byteBufAllocator or metadata is null@Nullable public ByteBuf getUnsafeMetadata()
MetadataFramenull.
Note: this metadata will be outside of the Frame's lifecycle and may be
released at any time. It is highly recommended that you ByteBuf.retain() the metadata
if you store it.
null if the Metadata flag is not setMetadataFrame.getMetadataAsUtf8(),
MetadataFrame.mapMetadata(Function)public 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)