com.hazelcast.hibernate
Interface RegionCache

All Known Implementing Classes:
IMapRegionCache, LocalRegionCache, TimestampsRegionCache

public interface RegionCache

This interface defines an internal cached region implementation as well as a mechanism to unmap the cache to an underlying Map data-structure


Method Summary
 Map asMap()
           
 void clear()
           
 boolean contains(Object key)
           
 Object get(Object key)
           
 long getSizeInMemory()
           
 boolean put(Object key, Object value, Object currentVersion)
           
 boolean remove(Object key)
           
 long size()
           
 SoftLock tryLock(Object key, Object version)
           
 void unlock(Object key, SoftLock lock)
           
 boolean update(Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock)
           
 

Method Detail

get

Object get(Object key)

put

boolean put(Object key,
            Object value,
            Object currentVersion)

update

boolean update(Object key,
               Object value,
               Object currentVersion,
               Object previousVersion,
               SoftLock lock)

remove

boolean remove(Object key)

tryLock

SoftLock tryLock(Object key,
                 Object version)

unlock

void unlock(Object key,
            SoftLock lock)

contains

boolean contains(Object key)

clear

void clear()

size

long size()

getSizeInMemory

long getSizeInMemory()

asMap

Map asMap()


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.