Class ReplicatedEbeanCache

java.lang.Object
com.turbospaces.boot.AbstractBootstrapAware
com.turbospaces.ebean.ReplicatedEbeanCache
All Implemented Interfaces:
com.turbospaces.boot.BootstrapAware, LocalCache, ReplicatedCache, io.ebean.cache.ServerCache, org.springframework.beans.factory.Aware

public class ReplicatedEbeanCache extends com.turbospaces.boot.AbstractBootstrapAware implements ReplicatedCache
  • Constructor Details

    • ReplicatedEbeanCache

      public ReplicatedEbeanCache(String cacheKey, org.jgroups.blocks.RpcDispatcher dispatcher, LocalCache 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
    • setBootstrap

      public void setBootstrap(com.turbospaces.boot.Bootstrap bootstrap)
      Specified by:
      setBootstrap in interface com.turbospaces.boot.BootstrapAware
      Specified by:
      setBootstrap in interface ReplicatedCache
      Overrides:
      setBootstrap in class com.turbospaces.boot.AbstractBootstrapAware
    • 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
    • cleanUp

      public void cleanUp()
      Specified by:
      cleanUp in interface LocalCache
    • type

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