Class IgniteCacheAdapter

java.lang.Object
org.mybatis.caches.ignite.IgniteCacheAdapter
All Implemented Interfaces:
org.apache.ibatis.cache.Cache

public final class IgniteCacheAdapter extends Object implements org.apache.ibatis.cache.Cache
Cache adapter for Ignite 3. Connects to a running Ignite 3 cluster via thin client. The server address is read from "config/default-config.properties" (property ignite.addresses), otherwise the default "127.0.0.1:10800" is used.
Author:
Roman Shtykh
  • Constructor Details

    • IgniteCacheAdapter

      public IgniteCacheAdapter(String id)
      Constructor.
      Parameters:
      id - Cache id.
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId 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
    • getObject

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

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

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

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

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