public class BufferRecyclers extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static ThreadLocal<SoftReference<JsonStringEncoder>> |
_encoderRef
This
ThreadLocal contains a SoftReference
to a BufferRecycler used to provide a low-cost
buffer recycling between reader and writer instances. |
protected static ThreadLocal<SoftReference<BufferRecycler>> |
_recyclerRef
This
ThreadLocal contains a SoftReference
to a BufferRecycler used to provide a low-cost
buffer recycling between reader and writer instances. |
| Constructor and Description |
|---|
BufferRecyclers() |
| Modifier and Type | Method and Description |
|---|---|
static BufferRecycler |
getBufferRecycler() |
static JsonStringEncoder |
getJsonStringEncoder() |
protected static final ThreadLocal<SoftReference<BufferRecycler>> _recyclerRef
ThreadLocal contains a SoftReference
to a BufferRecycler used to provide a low-cost
buffer recycling between reader and writer instances.protected static final ThreadLocal<SoftReference<JsonStringEncoder>> _encoderRef
ThreadLocal contains a SoftReference
to a BufferRecycler used to provide a low-cost
buffer recycling between reader and writer instances.public static BufferRecycler getBufferRecycler()
public static JsonStringEncoder getJsonStringEncoder()
Copyright © 2008–2017 FasterXML. All rights reserved.