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
Modifier and TypeFieldDescriptionThe cache map reference.protected final String
The cache id.protected final ReadWriteLock
TheReadWriteLock
. -
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractHazelcastCache
(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:
clear
in interfaceorg.apache.ibatis.cache.Cache
-
getId
- Specified by:
getId
in interfaceorg.apache.ibatis.cache.Cache
-
getObject
- Specified by:
getObject
in interfaceorg.apache.ibatis.cache.Cache
-
getReadWriteLock
- Specified by:
getReadWriteLock
in interfaceorg.apache.ibatis.cache.Cache
-
getSize
public int getSize()- Specified by:
getSize
in interfaceorg.apache.ibatis.cache.Cache
-
putObject
- Specified by:
putObject
in interfaceorg.apache.ibatis.cache.Cache
-
removeObject
- Specified by:
removeObject
in interfaceorg.apache.ibatis.cache.Cache
-
equals
-
hashCode
public int hashCode() -
toString
-