| Package | Description |
|---|---|
| com.fasterxml.jackson.core |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser)
and generator
(JsonGenerator)
instances. |
| com.fasterxml.jackson.core.io | |
| com.fasterxml.jackson.core.util |
Utility classes used by Jackson Core functionality.
|
| Modifier and Type | Field and Description |
|---|---|
protected RecyclerPool<BufferRecycler> |
TSFBuilder._recyclerPool |
protected RecyclerPool<BufferRecycler> |
JsonFactory._recyclerPool
RecyclerPool configured for use by this factory: used for
recycling underlying read and/or write buffers via BufferRecycler. |
| Modifier and Type | Method and Description |
|---|---|
BufferRecycler |
JsonFactory._getBufferRecycler()
Method used by factory to create buffer recycler instances
for parsers and generators.
|
| Modifier and Type | Method and Description |
|---|---|
RecyclerPool<BufferRecycler> |
JsonFactory._getRecyclerPool()
Accessor for getting access to
RecyclerPool for getting
BufferRecycler instance to use. |
RecyclerPool<BufferRecycler> |
TSFBuilder.recyclerPool() |
| Modifier and Type | Method and Description |
|---|---|
B |
TSFBuilder.recyclerPool(RecyclerPool<BufferRecycler> p) |
JsonFactory |
JsonFactory.setRecyclerPool(RecyclerPool<BufferRecycler> p) |
| Modifier and Type | Field and Description |
|---|---|
protected BufferRecycler |
IOContext._bufferRecycler
Recycler used for actual allocation/deallocation/reuse
|
| Modifier and Type | Method and Description |
|---|---|
BufferRecycler |
SegmentedStringWriter.bufferRecycler() |
BufferRecycler |
IOContext.bufferRecycler() |
| Constructor and Description |
|---|
IOContext(BufferRecycler br,
ContentReference contentRef,
boolean managedResource)
Deprecated.
|
IOContext(BufferRecycler br,
Object rawContent,
boolean managedResource)
Deprecated.
|
IOContext(StreamReadConstraints src,
BufferRecycler br,
ContentReference contentRef,
boolean managedResource)
Deprecated.
|
IOContext(StreamReadConstraints src,
StreamWriteConstraints swc,
ErrorReportConfiguration erc,
BufferRecycler br,
ContentReference contentRef,
boolean managedResource)
Main constructor to use.
|
SegmentedStringWriter(BufferRecycler br) |
| Modifier and Type | Field and Description |
|---|---|
protected static ThreadLocal<SoftReference<BufferRecycler>> |
BufferRecyclers._recyclerRef
Deprecated.
This
ThreadLocal contains a SoftReference
to a BufferRecycler used to provide a low-cost
buffer recycling between reader and writer instances. |
| Modifier and Type | Method and Description |
|---|---|
BufferRecycler |
JsonRecyclerPools.ThreadLocalPool.acquirePooled() |
BufferRecycler |
JsonRecyclerPools.NonRecyclingPool.acquirePooled() |
BufferRecycler |
ByteArrayBuilder.bufferRecycler() |
BufferRecycler |
BufferRecycler.Gettable.bufferRecycler() |
BufferRecycler |
TextBuffer.bufferRecycler() |
BufferRecycler |
JsonRecyclerPools.ConcurrentDequePool.createPooled() |
BufferRecycler |
JsonRecyclerPools.LockFreePool.createPooled()
Deprecated.
|
BufferRecycler |
JsonRecyclerPools.BoundedPool.createPooled() |
static BufferRecycler |
BufferRecyclers.getBufferRecycler()
Deprecated.
Since 2.16 should use
RecyclerPool abstraction instead
of calling static methods of this class |
BufferRecycler |
BufferRecycler.withPool(RecyclerPool<BufferRecycler> pool)
Method called by owner of this recycler instance, to provide reference to
RecyclerPool into which instance is to be released (if any) |
| Modifier and Type | Method and Description |
|---|---|
static RecyclerPool<BufferRecycler> |
JsonRecyclerPools.defaultPool()
Method to call to get the default recycler pool instance:
as of Jackson 2.18 this is same as calling
JsonRecyclerPools.threadLocalPool(): Jackson 2.17.0 instead had this call
JsonRecyclerPools.newLockFreePool() but this was reverted due to problems reported. |
static RecyclerPool<BufferRecycler> |
JsonRecyclerPools.newBoundedPool(int size)
Accessor for constructing a new, non-shared
JsonRecyclerPools.BoundedPool instance. |
static RecyclerPool<BufferRecycler> |
JsonRecyclerPools.newConcurrentDequePool()
Accessor for constructing a new, non-shared
JsonRecyclerPools.ConcurrentDequePool instance. |
static RecyclerPool<BufferRecycler> |
JsonRecyclerPools.newLockFreePool()
Deprecated.
Since 2.18: use one of other implementations instead;
see
JsonRecyclerPools.LockFreePool Javadocs for details |
static RecyclerPool<BufferRecycler> |
JsonRecyclerPools.nonRecyclingPool()
Accessor for getting the shared/global
JsonRecyclerPools.NonRecyclingPool instance
(due to design only one instance ever needed) |
static RecyclerPool<BufferRecycler> |
JsonRecyclerPools.sharedBoundedPool()
Accessor for getting the shared/global
JsonRecyclerPools.BoundedPool instance. |
static RecyclerPool<BufferRecycler> |
JsonRecyclerPools.sharedConcurrentDequePool()
Accessor for getting the shared/global
JsonRecyclerPools.ConcurrentDequePool instance. |
static RecyclerPool<BufferRecycler> |
JsonRecyclerPools.sharedLockFreePool()
Deprecated.
Since 2.18: use one of other implementations instead;
see
JsonRecyclerPools.LockFreePool Javadocs for details |
static RecyclerPool<BufferRecycler> |
JsonRecyclerPools.threadLocalPool()
Accessor for getting the shared/global
JsonRecyclerPools.ThreadLocalPool instance
(due to design only one instance ever needed) |
| Modifier and Type | Method and Description |
|---|---|
BufferRecycler |
BufferRecycler.withPool(RecyclerPool<BufferRecycler> pool)
Method called by owner of this recycler instance, to provide reference to
RecyclerPool into which instance is to be released (if any) |
| Constructor and Description |
|---|
ByteArrayBuilder(BufferRecycler br) |
ByteArrayBuilder(BufferRecycler br,
int firstBlockSize) |
ReadConstrainedTextBuffer(StreamReadConstraints streamReadConstraints,
BufferRecycler bufferRecycler) |
TextBuffer(BufferRecycler allocator) |
TextBuffer(BufferRecycler allocator,
char[] initialSegment) |
Copyright © 2008–2024 FasterXML. All rights reserved.