Class ApacheCodecRecycler
java.lang.Object
tools.jackson.dataformat.avro.apacheimpl.ApacheCodecRecycler
- All Implemented Interfaces:
tools.jackson.core.util.RecyclerPool.WithPool<ApacheCodecRecycler>
public final class ApacheCodecRecycler
extends Object
implements tools.jackson.core.util.RecyclerPool.WithPool<ApacheCodecRecycler>
Simple helper class that contains extracted functionality for
simple encoder/decoder recycling.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.avro.io.BinaryDecoderorg.apache.avro.io.BinaryEncodervoidrelease(org.apache.avro.io.BinaryDecoder dec) voidrelease(org.apache.avro.io.BinaryEncoder enc) voidMethod called when owner of this recycler no longer wishes use it; this should return it to pool passed viawithPool()(if any).withPool(tools.jackson.core.util.RecyclerPool<ApacheCodecRecycler> pool) Method called by owner of this recycler instance, to provide reference toRecyclerPoolinto which instance is to be released (if any)
-
Method Details
-
acquireDecoder
public org.apache.avro.io.BinaryDecoder acquireDecoder() -
acquireEncoder
public org.apache.avro.io.BinaryEncoder acquireEncoder() -
release
public void release(org.apache.avro.io.BinaryDecoder dec) -
release
public void release(org.apache.avro.io.BinaryEncoder enc) -
withPool
Method called by owner of this recycler instance, to provide reference toRecyclerPoolinto which instance is to be released (if any)- Specified by:
withPoolin interfacetools.jackson.core.util.RecyclerPool.WithPool<ApacheCodecRecycler>- Since:
- 2.16
-
releaseToPool
public void releaseToPool()Method called when owner of this recycler no longer wishes use it; this should return it to pool passed viawithPool()(if any).- Specified by:
releaseToPoolin interfacetools.jackson.core.util.RecyclerPool.WithPool<ApacheCodecRecycler>- Since:
- 2.16
-