Class PrecomputedCodecCache<T>


  • @Beta
    public final class PrecomputedCodecCache<T>
    extends CodecCache<T>
    Pre-computed thread-safe CodecCache. All possible codecs are created upfront at instantiation time, after which they are available for the cost of a constant lookup.

    Instantiation needs to occur through LazyCodecCache.toPrecomputed() after the lazy cache has been fully populated.

    Author:
    Robert Varga
    • Method Detail

      • complexSize

        public int complexSize()
      • simpleSize

        public int simpleSize()