Package org.mybatis.caches.hazelcast
Class AbstractHazelcastCache
java.lang.Object
org.mybatis.caches.hazelcast.AbstractHazelcastCache
- All Implemented Interfaces:
org.apache.ibatis.cache.Cache
- Direct Known Subclasses:
HazelcastCache,HazelcastClientCache
public abstract class AbstractHazelcastCache
extends Object
implements org.apache.ibatis.cache.Cache
The Class AbstractHazelcastCache.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe cache map reference.protected final StringThe cache id.protected final ReadWriteLockTheReadWriteLock. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractHazelcastCache(String id, com.hazelcast.map.IMap<Object, Object> imap) Instantiates a new abstract hazelcast cache. -
Method Summary
-
Field Details
-
readWriteLock
TheReadWriteLock. -
id
The cache id. -
cacheMap
The cache map reference.
-
-
Constructor Details
-
AbstractHazelcastCache
Instantiates a new abstract hazelcast cache.- Parameters:
id- the idimap- the i map
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.ibatis.cache.Cache
-
getId
- Specified by:
getIdin interfaceorg.apache.ibatis.cache.Cache
-
getObject
- Specified by:
getObjectin interfaceorg.apache.ibatis.cache.Cache
-
getReadWriteLock
- Specified by:
getReadWriteLockin interfaceorg.apache.ibatis.cache.Cache
-
getSize
public int getSize()- Specified by:
getSizein interfaceorg.apache.ibatis.cache.Cache
-
putObject
- Specified by:
putObjectin interfaceorg.apache.ibatis.cache.Cache
-
removeObject
- Specified by:
removeObjectin interfaceorg.apache.ibatis.cache.Cache
-
equals
-
hashCode
public int hashCode() -
toString
-