Class ReplicatedEbeanCache

java.lang.Object
com.turbospaces.ebean.ReplicatedEbeanCache
All Implemented Interfaces:
LocalCache, ReplicatedCache, io.ebean.cache.ServerCache

public class ReplicatedEbeanCache extends Object implements ReplicatedCache
  • Constructor Details

    • ReplicatedEbeanCache

      public ReplicatedEbeanCache(String cacheKey, org.jgroups.blocks.RpcDispatcher dispatcher, org.jgroups.blocks.RequestOptions requestOptions, io.ebean.cache.ServerCache local, io.ebean.cache.ServerCacheConfig config)
  • Method Details

    • size

      public int size()
      Specified by:
      size in interface io.ebean.cache.ServerCache
    • get

      public Object get(Object id)
      Specified by:
      get in interface io.ebean.cache.ServerCache
    • hitRatio

      public int hitRatio()
      Specified by:
      hitRatio in interface io.ebean.cache.ServerCache
    • statistics

      public io.ebean.cache.ServerCacheStatistics statistics(boolean reset)
      Specified by:
      statistics in interface io.ebean.cache.ServerCache
    • put

      public void put(Object id, Object value)
      Specified by:
      put in interface io.ebean.cache.ServerCache
    • remove

      public void remove(Object id)
      Specified by:
      remove in interface io.ebean.cache.ServerCache
    • clear

      public void clear()
      Specified by:
      clear in interface io.ebean.cache.ServerCache
    • onPut

      public void onPut(byte[] keyData, byte[] valueData)
      Specified by:
      onPut in interface ReplicatedCache
    • onRemove

      public void onRemove(byte[] data)
      Specified by:
      onRemove in interface ReplicatedCache
    • onClear

      public int onClear()
      Specified by:
      onClear in interface LocalCache
    • type

      public io.ebean.cache.ServerCacheType type()
      Specified by:
      type in interface ReplicatedCache