Top Description Constructors Methods
io.rsocket.frame.decoder

public Class ZeroCopyPayloadDecoder

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.ByteBufPayload

Frame decoder that decodes a frame to a payload without copying. The caller is responsible for for releasing the payload to free memory when they no long need it.

Constructor Summary

AccessConstructor and Description
public

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

ZeroCopyPayloadDecoderback to summary
public ZeroCopyPayloadDecoder()

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