Class AbstractRegioncacheUnit

  • All Implemented Interfaces:
    CacheValueLoader, CacheKey

    @Deprecated
    public abstract class AbstractRegioncacheUnit
    extends java.lang.Object
    implements CacheKey, CacheValueLoader
    Deprecated.
    since 5.0 this was used as utility class , favor now LegacyCacheKeyTypeUtil
    Adds CacheKey support to AbstractCacheUnit
    • Field Detail

      • typeCode

        protected java.lang.Object typeCode
        Deprecated.
        Each key has value and type. This field keeps type.
      • cacheKey

        protected CacheKey cacheKey
        Deprecated.
    • Constructor Detail

      • AbstractRegioncacheUnit

        public AbstractRegioncacheUnit()
        Deprecated.
    • Method Detail

      • getKeyAsArray

        public abstract java.lang.Object[] getKeyAsArray()
        Deprecated.
        AbstractCacheUnit methods
      • addedToCacheBeforeComputation

        public abstract void addedToCacheBeforeComputation()
        Deprecated.
      • getTenantID

        public abstract java.lang.String getTenantID()
        Deprecated.
      • load

        public final java.lang.Object load​(CacheKey key)
                                    throws CacheValueLoadException
        Deprecated.
        We do not perform compute not to hit database several times from different threads.
        Another reason is to keep lifecycle of hooks in the same order. addedToCacheBeforeComputation() is called here other callbacks in the RegionCacheAdapter.
        Specified by:
        load in interface CacheValueLoader
        Throws:
        CacheValueLoadException
      • getKey

        public final CacheKey getKey()
        Deprecated.
        CacheKey interface implementation
      • getTenantId

        public final java.lang.String getTenantId()
        Deprecated.
        Description copied from interface: CacheKey
        Gets tenant
        Specified by:
        getTenantId in interface CacheKey
      • getTypeCode

        public java.lang.Object getTypeCode()
        Deprecated.
        Gets code from typesystem.
        Specified by:
        getTypeCode in interface CacheKey
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object
      • calculateKeyCode

        public static java.lang.Object calculateKeyCode​(java.lang.Object[] key)
        Deprecated.