Class ThreadLocalUnmarshallerProvider
- java.lang.Object
-
- io.netty.handler.codec.marshalling.ThreadLocalUnmarshallerProvider
-
- All Implemented Interfaces:
UnmarshallerProvider
public class ThreadLocalUnmarshallerProvider extends java.lang.Object implements UnmarshallerProvider
UnmarshallerProviderimplementation which use aThreadLocalto store references toUnmarshallerinstances. This may give you some performance boost if you need to unmarshall many smallObject's.
-
-
Constructor Summary
Constructors Constructor Description ThreadLocalUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)Create a new instance of theThreadLocalUnmarshallerProvider
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.marshalling.UnmarshallergetUnmarshaller(ChannelHandlerContext ctx)Get theUnmarshallerfor the givenChannelHandlerContext
-
-
-
Constructor Detail
-
ThreadLocalUnmarshallerProvider
public ThreadLocalUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)Create a new instance of theThreadLocalUnmarshallerProvider- Parameters:
factory- theMarshallerFactoryto use to createUnmarshaller's if neededconfig- theMarshallingConfigurationto use
-
-
Method Detail
-
getUnmarshaller
public org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws java.lang.Exception
Description copied from interface:UnmarshallerProviderGet theUnmarshallerfor the givenChannelHandlerContext- Specified by:
getUnmarshallerin interfaceUnmarshallerProvider- Throws:
java.lang.Exception
-
-