com.hazelcast.hibernate.local
Class TimestampsRegionCache

java.lang.Object
  extended by com.hazelcast.hibernate.local.LocalRegionCache
      extended by com.hazelcast.hibernate.local.TimestampsRegionCache
All Implemented Interfaces:
RegionCache

public class TimestampsRegionCache
extends LocalRegionCache
implements RegionCache

A timestamp based local RegionCache


Field Summary
 
Fields inherited from class com.hazelcast.hibernate.local.LocalRegionCache
cache, config, messageListener, topic, versionComparator
 
Constructor Summary
TimestampsRegionCache(String name, HazelcastInstance hazelcastInstance)
           
 
Method Summary
protected  Object createMessage(Object key, Object value, Object currentVersion)
           
protected  MessageListener<Object> createMessageListener()
           
 boolean put(Object key, Object value, Object currentVersion)
           
 
Methods inherited from class com.hazelcast.hibernate.local.LocalRegionCache
asMap, clear, contains, get, getSizeInMemory, remove, size, tryLock, unlock, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hazelcast.hibernate.RegionCache
asMap, clear, contains, get, getSizeInMemory, remove, size, tryLock, unlock, update
 

Constructor Detail

TimestampsRegionCache

public TimestampsRegionCache(String name,
                             HazelcastInstance hazelcastInstance)
Method Detail

put

public boolean put(Object key,
                   Object value,
                   Object currentVersion)
Specified by:
put in interface RegionCache
Overrides:
put in class LocalRegionCache

createMessageListener

protected MessageListener<Object> createMessageListener()
Overrides:
createMessageListener in class LocalRegionCache

createMessage

protected Object createMessage(Object key,
                               Object value,
                               Object currentVersion)
Overrides:
createMessage in class LocalRegionCache


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