Class ConcurrentDataCache

  • All Implemented Interfaces:
    java.io.Serializable, DataCache, RemoteCommitListener, org.apache.openjpa.lib.conf.Configurable, org.apache.openjpa.lib.util.Clearable, org.apache.openjpa.lib.util.Closeable, org.apache.openjpa.lib.util.EventManager
    Direct Known Subclasses:
    PartitionedDataCache

    public class ConcurrentDataCache
    extends AbstractDataCache
    implements RemoteCommitListener
    A DataCache implementation that is optimized for concurrent access. When the cache fills up, values to remove from cache are chosen randomly. Due to race conditions, it is possible that a get call might not return a cached instance if that instance is being transferred between internal datastructures.
    Since:
    0.4.0
    See Also:
    Serialized Form