Class ContextBoundUnmarshallerProvider
java.lang.Object
io.netty.handler.codec.marshalling.DefaultUnmarshallerProvider
io.netty.handler.codec.marshalling.ContextBoundUnmarshallerProvider
- All Implemented Interfaces:
UnmarshallerProvider
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.-
Constructor Summary
ConstructorsConstructorDescriptionContextBoundUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config) -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.marshalling.UnmarshallerGet theUnmarshallerfor the givenChannelHandlerContext
-
Constructor Details
-
ContextBoundUnmarshallerProvider
public ContextBoundUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
-
-
Method Details
-
getUnmarshaller
public org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws Exception Description copied from interface:UnmarshallerProviderGet theUnmarshallerfor the givenChannelHandlerContext- Specified by:
getUnmarshallerin interfaceUnmarshallerProvider- Overrides:
getUnmarshallerin classDefaultUnmarshallerProvider- Throws:
Exception
-