Class ThreadLocalUnmarshallerProvider

java.lang.Object
org.jboss.netty.handler.codec.marshalling.ThreadLocalUnmarshallerProvider
All Implemented Interfaces:
UnmarshallerProvider

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.
  • Field Details

    • unmarshallers

      private final ThreadLocal<org.jboss.marshalling.Unmarshaller> unmarshallers
    • factory

      private final org.jboss.marshalling.MarshallerFactory factory
    • config

      private final org.jboss.marshalling.MarshallingConfiguration config
  • Constructor Details

    • ThreadLocalUnmarshallerProvider

      public ThreadLocalUnmarshallerProvider(org.jboss.marshalling.MarshallerFactory factory, org.jboss.marshalling.MarshallingConfiguration config)
      Create a new instance of the ThreadLocalUnmarshallerProvider
      Parameters:
      factory - the MarshallerFactory to use to create Unmarshaller's if needed
      config - the MarshallingConfiguration to use
  • Method Details