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.
| Modifier and Type | Field and Description |
|---|---|
| private final MarshallingConfiguration | |
| private final MarshallerFactory | |
| private final FastThreadLocal |
| Access | Constructor and Description |
|---|---|
| public | ThreadLocalUnmarshallerProvider(MarshallerFactory
the factory, MarshallingConfiguration MarshallerFactory to use to create Unmarshaller's if neededthe config)MarshallingConfiguration to useCreate a new instance of the |
| Modifier and Type | Method and Description |
|---|---|
| public Unmarshaller | getUnmarshaller(ChannelHandlerContext ctx)
Implements io. Unmarshaller for the given ChannelHandlerContext
|
| config | back to summary |
|---|---|
| private final MarshallingConfiguration config | |
| factory | back to summary |
|---|---|
| private final MarshallerFactory factory | |
| unmarshallers | back to summary |
|---|---|
| private final FastThreadLocal<Unmarshaller> unmarshallers | |
| ThreadLocalUnmarshallerProvider | back to summary |
|---|---|
| public ThreadLocalUnmarshallerProvider(MarshallerFactory factory, MarshallingConfiguration config) Create a new instance of the
| |
| getUnmarshaller | back to summary |
|---|---|
| public Unmarshaller getUnmarshaller(ChannelHandlerContext ctx) throws Exception Implements io. Doc from io. Get the
| |