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 Details

    • readWriteLock

      protected final ReadWriteLock readWriteLock
      The ReadWriteLock.
    • id

      protected final String id
      The cache id.
    • cacheMap

      protected final com.hazelcast.map.IMap<Object,Object> cacheMap
      The cache map reference.
  • Constructor Details

    • AbstractHazelcastCache

      protected AbstractHazelcastCache(String id, com.hazelcast.map.IMap<Object,Object> imap)
      Instantiates a new abstract hazelcast cache.
      Parameters:
      id - the id
      imap - the i map
  • Method Details

    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.ibatis.cache.Cache
    • getId

      public String getId()
      Specified by:
      getId in interface org.apache.ibatis.cache.Cache
    • getObject

      public Object getObject(Object key)
      Specified by:
      getObject in interface org.apache.ibatis.cache.Cache
    • getReadWriteLock

      public ReadWriteLock getReadWriteLock()
      Specified by:
      getReadWriteLock in interface org.apache.ibatis.cache.Cache
    • getSize

      public int getSize()
      Specified by:
      getSize in interface org.apache.ibatis.cache.Cache
    • putObject

      public void putObject(Object key, Object value)
      Specified by:
      putObject in interface org.apache.ibatis.cache.Cache
    • removeObject

      public Object removeObject(Object key)
      Specified by:
      removeObject in interface org.apache.ibatis.cache.Cache
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object