Top Description Constructors Methods
io.rsocket.frame.decoder

pack-priv Class DefaultPayloadDecoder

extends Object
implements PayloadDecoder
Class Inheritance
All Implemented Interfaces
io.rsocket.frame.decoder.PayloadDecoder, java.util.function.Function
Imports
io.netty.buffer.ByteBuf, .Unpooled, io.rsocket.Payload, io.rsocket.frame.FrameHeaderCodec, .FrameType, .MetadataPushFrameCodec, .PayloadFrameCodec, .RequestChannelFrameCodec, .RequestFireAndForgetFrameCodec, .RequestResponseFrameCodec, .RequestStreamFrameCodec, io.rsocket.util.DefaultPayload, java.nio.ByteBuffer

Default Frame decoder that copies the frames contents for easy of use.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Payload
apply(ByteBuf
the function argument
byteBuf
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultPayloadDecoderback to summary
pack-priv DefaultPayloadDecoder()

Method Detail

applyback to summary
public Payload apply(ByteBuf byteBuf)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Parameters
byteBuf:ByteBuf

the function argument

Returns:Payload

the function result

Annotations
@Override