Class LocalCache

  • All Implemented Interfaces:
    com.google.common.cache.RemovalListener<String,​String>, Cache

    public class LocalCache
    extends Object
    implements Cache, com.google.common.cache.RemovalListener<String,​String>
    • Constructor Detail

      • LocalCache

        public LocalCache​(String id,
                          boolean persisted,
                          int timeout,
                          StorageManager storageManager)
    • Method Detail

      • getId

        public String getId()
      • isPersisted

        public boolean isPersisted()
      • getTimeout

        public int getTimeout()
      • start

        public void start()
        Specified by:
        start in interface Cache
      • stop

        public void stop()
        Specified by:
        stop in interface Cache
      • onRemoval

        public void onRemoval​(com.google.common.cache.RemovalNotification<String,​String> notification)
        Specified by:
        onRemoval in interface com.google.common.cache.RemovalListener<String,​String>