Class InvalidationInterceptor

  • All Implemented Interfaces:
    Visitor, AsyncInterceptor, JmxStatisticsExposer

    public class InvalidationInterceptor
    extends BaseRpcInterceptor
    implements JmxStatisticsExposer
    This interceptor acts as a replacement to the replication interceptor when the CacheImpl is configured with ClusteredSyncMode as INVALIDATE.

    The idea is that rather than replicating changes to all caches in a cluster when write methods are called, simply broadcast an InvalidateCommand on the remote caches containing all keys modified. This allows the remote cache to look up the value in a shared cache loader which would have been updated with the changes.

    Since:
    9.0
    Author:
    Manik Surtani, Galder ZamarreƱo, Mircea.Markus@jboss.com