Top Description Fields Constructors Methods
io.netty.handler.codec.marshalling

public Class ContextBoundUnmarshallerProvider

extends DefaultUnmarshallerProvider
Class Inheritance
Imports
io.netty.channel.Channel, .ChannelHandler, .ChannelHandlerContext, io.netty.util.Attribute, .AttributeKey, org.jboss.marshalling.MarshallerFactory, .MarshallingConfiguration, .Unmarshaller

UnmarshallerProvider which store a reference to the Unmarshaller in the ChannelHandlerContext via the ChannelHandlerContext#attr(AttributeKey) method. So the same Unmarshaller will be used during the life-time of a Channel for the ChannelHandler's ChannelHandlerContext.

Field Summary

Modifier and TypeField and Description
private static final AttributeKey<Unmarshaller>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Unmarshaller

Field Detail

UNMARSHALLERback to summary
private static final AttributeKey<Unmarshaller> UNMARSHALLER

Constructor Detail

ContextBoundUnmarshallerProviderback to summary
public ContextBoundUnmarshallerProvider(MarshallerFactory factory, MarshallingConfiguration config)

Method Detail

getUnmarshallerback to summary
public Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws Exception

Overrides io.netty.handler.codec.marshalling.DefaultUnmarshallerProvider.getUnmarshaller.

Implements io.netty.handler.codec.marshalling.UnmarshallerProvider.getUnmarshaller.

Doc from io.netty.handler.codec.marshalling.UnmarshallerProvider.getUnmarshaller.

Get the Unmarshaller for the given ChannelHandlerContext

Annotations
@Override