Uses of Class
com.fasterxml.jackson.core.util.BufferRecycler
Packages that use BufferRecycler
Package
Description
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser
)
and generator
(JsonGenerator
)
instances.Utility classes used by Jackson Core functionality.
-
Uses of BufferRecycler in com.fasterxml.jackson.core
Fields in com.fasterxml.jackson.core with type parameters of type BufferRecyclerModifier and TypeFieldDescriptionprotected RecyclerPool
<BufferRecycler> JsonFactory._recyclerPool
RecyclerPool
configured for use by this factory: used for recycling underlying read and/or write buffers viaBufferRecycler
.protected RecyclerPool
<BufferRecycler> TSFBuilder._recyclerPool
Methods in com.fasterxml.jackson.core that return BufferRecyclerModifier and TypeMethodDescriptionJsonFactory._getBufferRecycler()
Method used by factory to create buffer recycler instances for parsers and generators.Methods in com.fasterxml.jackson.core that return types with arguments of type BufferRecyclerModifier and TypeMethodDescriptionJsonFactory._getRecyclerPool()
Accessor for getting access toRecyclerPool
for gettingBufferRecycler
instance to use.TSFBuilder.recyclerPool()
Method parameters in com.fasterxml.jackson.core with type arguments of type BufferRecyclerModifier and TypeMethodDescriptionTSFBuilder.recyclerPool
(RecyclerPool<BufferRecycler> p) JsonFactory.setRecyclerPool
(RecyclerPool<BufferRecycler> p) -
Uses of BufferRecycler in com.fasterxml.jackson.core.io
Fields in com.fasterxml.jackson.core.io declared as BufferRecyclerModifier and TypeFieldDescriptionprotected final BufferRecycler
IOContext._bufferRecycler
Recycler used for actual allocation/deallocation/reuseMethods in com.fasterxml.jackson.core.io that return BufferRecyclerModifier and TypeMethodDescriptionIOContext.bufferRecycler()
SegmentedStringWriter.bufferRecycler()
Constructors in com.fasterxml.jackson.core.io with parameters of type BufferRecyclerModifierConstructorDescriptionIOContext
(StreamReadConstraints src, StreamWriteConstraints swc, ErrorReportConfiguration erc, BufferRecycler br, ContentReference contentRef, boolean managedResource) Main constructor to use.IOContext
(StreamReadConstraints src, BufferRecycler br, ContentReference contentRef, boolean managedResource) Deprecated.Since 2.16.IOContext
(BufferRecycler br, ContentReference contentRef, boolean managedResource) Deprecated.Since 2.15.IOContext
(BufferRecycler br, Object rawContent, boolean managedResource) Deprecated. -
Uses of BufferRecycler in com.fasterxml.jackson.core.util
Fields in com.fasterxml.jackson.core.util with type parameters of type BufferRecyclerModifier and TypeFieldDescriptionprotected static final ThreadLocal
<SoftReference<BufferRecycler>> BufferRecyclers._recyclerRef
Deprecated.ThisThreadLocal
contains aSoftReference
to aBufferRecycler
used to provide a low-cost buffer recycling between reader and writer instances.Methods in com.fasterxml.jackson.core.util that return BufferRecyclerModifier and TypeMethodDescriptionJsonRecyclerPools.NonRecyclingPool.acquirePooled()
JsonRecyclerPools.ThreadLocalPool.acquirePooled()
BufferRecycler.Gettable.bufferRecycler()
ByteArrayBuilder.bufferRecycler()
TextBuffer.bufferRecycler()
JsonRecyclerPools.BoundedPool.createPooled()
JsonRecyclerPools.ConcurrentDequePool.createPooled()
JsonRecyclerPools.LockFreePool.createPooled()
Deprecated.static BufferRecycler
BufferRecyclers.getBufferRecycler()
Deprecated.Since 2.16 should useRecyclerPool
abstraction instead of calling static methods of this classBufferRecycler.withPool
(RecyclerPool<BufferRecycler> pool) Method called by owner of this recycler instance, to provide reference toRecyclerPool
into which instance is to be released (if any)Methods in com.fasterxml.jackson.core.util that return types with arguments of type BufferRecyclerModifier and TypeMethodDescriptionstatic RecyclerPool
<BufferRecycler> JsonRecyclerPools.defaultPool()
Method to call to get the default recycler pool instance: as of Jackson 2.18 this is same as callingJsonRecyclerPools.threadLocalPool()
: Jackson 2.17.0 instead had this callJsonRecyclerPools.newLockFreePool()
but this was reverted due to problems reported.static RecyclerPool
<BufferRecycler> JsonRecyclerPools.newBoundedPool
(int size) Accessor for constructing a new, non-sharedJsonRecyclerPools.BoundedPool
instance.static RecyclerPool
<BufferRecycler> JsonRecyclerPools.newConcurrentDequePool()
Accessor for constructing a new, non-sharedJsonRecyclerPools.ConcurrentDequePool
instance.static RecyclerPool
<BufferRecycler> JsonRecyclerPools.newLockFreePool()
Deprecated.Since 2.18: use one of other implementations instead; seeJsonRecyclerPools.LockFreePool
Javadocs for detailsstatic RecyclerPool
<BufferRecycler> JsonRecyclerPools.nonRecyclingPool()
Accessor for getting the shared/globalJsonRecyclerPools.NonRecyclingPool
instance (due to design only one instance ever needed)static RecyclerPool
<BufferRecycler> JsonRecyclerPools.sharedBoundedPool()
Accessor for getting the shared/globalJsonRecyclerPools.BoundedPool
instance.static RecyclerPool
<BufferRecycler> JsonRecyclerPools.sharedConcurrentDequePool()
Accessor for getting the shared/globalJsonRecyclerPools.ConcurrentDequePool
instance.static RecyclerPool
<BufferRecycler> JsonRecyclerPools.sharedLockFreePool()
Deprecated.Since 2.18: use one of other implementations instead; seeJsonRecyclerPools.LockFreePool
Javadocs for detailsstatic RecyclerPool
<BufferRecycler> JsonRecyclerPools.threadLocalPool()
Accessor for getting the shared/globalJsonRecyclerPools.ThreadLocalPool
instance (due to design only one instance ever needed)Method parameters in com.fasterxml.jackson.core.util with type arguments of type BufferRecyclerModifier and TypeMethodDescriptionBufferRecycler.withPool
(RecyclerPool<BufferRecycler> pool) Method called by owner of this recycler instance, to provide reference toRecyclerPool
into which instance is to be released (if any)Constructors in com.fasterxml.jackson.core.util with parameters of type BufferRecyclerModifierConstructorDescriptionByteArrayBuilder
(BufferRecycler br, int firstBlockSize) ReadConstrainedTextBuffer
(StreamReadConstraints streamReadConstraints, BufferRecycler bufferRecycler) TextBuffer
(BufferRecycler allocator) protected
TextBuffer
(BufferRecycler allocator, char[] initialSegment)