Class SerializationProxy<K,V>

java.lang.Object
com.github.benmanes.caffeine.cache.SerializationProxy<K,V>
All Implemented Interfaces:
Serializable

final class SerializationProxy<K,V> extends Object implements Serializable
Serializes the configuration of the cache, reconsitituting it as a Cache, LoadingCache, or AsyncLoadingCache using Caffeine upon deserialization. The data held by the cache is not retained.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • async

      boolean async
    • weakKeys

      boolean weakKeys
    • weakValues

      boolean weakValues
    • softValues

      boolean softValues
    • isRecordingStats

      boolean isRecordingStats
    • refreshAfterWriteNanos

      long refreshAfterWriteNanos
    • expiresAfterWriteNanos

      long expiresAfterWriteNanos
    • expiresAfterAccessNanos

      long expiresAfterAccessNanos
    • maximumSize

      long maximumSize
    • maximumWeight

      long maximumWeight
    • ticker

      @Nullable Ticker ticker
    • expiry

      @Nullable Expiry<?,?> expiry
    • weigher

      @Nullable Weigher<?,?> weigher
    • writer

      @Nullable CacheWriter<?,?> writer
    • loader

      @Nullable AsyncCacheLoader<?,?> loader
    • removalListener

      @Nullable RemovalListener<?,?> removalListener
  • Constructor Details

    • SerializationProxy

      SerializationProxy()
  • Method Details