Package org.infinispan.hibernate.cache.commons.access
package org.infinispan.hibernate.cache.commons.access
Internal Infinispan-based implementation of the cache region access strategies
-
ClassDescriptionDefines the strategy for access to entity or collection data in a Infinispan instance.Synchronization that should release the locks after invalidation is complete.With regular
NonTransactionalLockingInterceptor, async replication does not work in combination with synchronous replication: sync replication relies on locking to order writes on backup while async replication relies on FIFO-ordering from primary to backup.Access delegate that relaxes the consistency a bit: stale reads are prohibited only after the transaction commits.Delegate for non-transactional cachesThis interceptor should completely replace default InvalidationInterceptor.Non-transactional counterpart ofTxPutFromLoadInterceptor.Encapsulates logic to allow aInvalidationCacheAccessDelegateto determine whether aInvalidationCacheAccessDelegate.putFromLoad(Object, Object, Object, long, Object, boolean)call should be allowed to update the cache.Marker for lock acquired inPutFromLoadValidator.acquirePutFromLoadLock(Object, Object, long)Delegate for transactional cachesThis interceptor acts as a replacement to the replication interceptor when the CacheImpl is configured with ClusteredSyncMode as INVALIDATE.Since the applied functions do not rely on the order how these are applied (the updates are commutative), this interceptor simply sends any command to all other owners without ordering them through primary owner.