com.fasterxml.jackson.core.util

Interface RecyclerPool<P extends RecyclerPool.WithPool<P>>

    • Method Detail

      • acquirePooled

        P acquirePooled()
        Method for sub-classes to implement for actual acquire logic; called by acquireAndLinkPooled().
        Returns:
        Instance acquired (pooled or just constructed)
      • releasePooled

        void releasePooled(P pooled)
        Method that should be called when previously acquired (see acquireAndLinkPooled()) pooled value that is no longer needed; this lets pool to take ownership for possible reuse.
        Parameters:
        pooled - Pooled instance to release back to pool

Copyright © 2008–2023 FasterXML. All rights reserved.