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 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

      public ApacheCodecRecycler withPool(tools.jackson.core.util.RecyclerPool<ApacheCodecRecycler> pool)
      Method called by owner of this recycler instance, to provide reference to RecyclerPool into which instance is to be released (if any)
      Specified by:
      withPool in interface tools.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 via withPool() (if any).
      Specified by:
      releaseToPool in interface tools.jackson.core.util.RecyclerPool.WithPool<ApacheCodecRecycler>
      Since:
      2.16