public class ThreadLocalUnmarshallerProvider extends Object implements UnmarshallerProvider
UnmarshallerProvider implementation which use a ThreadLocal to store references
 to Unmarshaller instances. This may give you some performance boost if you need to unmarshall
 many small Object's.| Constructor and Description | 
|---|
| ThreadLocalUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory,
                               org.jboss.marshalling.MarshallingConfiguration config)Create a new instance of the  ThreadLocalUnmarshallerProvider | 
| Modifier and Type | Method and Description | 
|---|---|
| org.jboss.marshalling.Unmarshaller | getUnmarshaller(ChannelHandlerContext ctx)Get the  Unmarshallerfor the givenChannelHandlerContext | 
public ThreadLocalUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory,
                                       org.jboss.marshalling.MarshallingConfiguration config)
ThreadLocalUnmarshallerProviderfactory - the MarshallerFactory to use to create Unmarshaller's if neededconfig - the MarshallingConfiguration to usepublic org.jboss.marshalling.Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws Exception
UnmarshallerProviderUnmarshaller for the given ChannelHandlerContextgetUnmarshaller in interface UnmarshallerProviderExceptionCopyright © 2008–2025 The Netty Project. All rights reserved.