Class SimpleReplicatedExoCache<K extends Serializable,​V extends Serializable>

  • All Implemented Interfaces:
    ExoCache<K,​V>

    public class SimpleReplicatedExoCache<K extends Serializable,​V extends Serializable>
    extends ConcurrentFIFOExoCache<K,​V>

    This implementation of ExoCache will behave exactly the same way as ConcurrentFIFOExoCache except in case of a cache change, indeed the modifications will be first applied locally then it will be replicated over the cluster asynchronously to limit the performance impact on the local cluster node.

    This class can be used as a drop-in replacement for ConcurrentFIFOExoCache in a cluster environment as long as we know that modifications like remove, clearCache, removeCachedObjects, put or putMap happen rarely. In other words, it should be used for caches that rarely change.

    This limitation is due to the fact that the mechanism used for the replication has not been designed to support heavy load so it must be used with a lot of caution.
    Version:
    $Id$
    Author:
    Nicolas Filotto