Class CacheSizeManager<K,V>

java.lang.Object
org.talend.sdk.components.vault.jcache.CacheSizeManager<K,V>
All Implemented Interfaces:
EventListener, Consumer<javax.cache.Cache<K,V>>, javax.cache.event.CacheEntryCreatedListener<K,V>, javax.cache.event.CacheEntryExpiredListener<K,V>, javax.cache.event.CacheEntryListener<K,V>, javax.cache.event.CacheEntryRemovedListener<K,V>

public class CacheSizeManager<K,V> extends Object implements javax.cache.event.CacheEntryCreatedListener<K,V>, javax.cache.event.CacheEntryExpiredListener<K,V>, javax.cache.event.CacheEntryRemovedListener<K,V>, Consumer<javax.cache.Cache<K,V>>
  • Constructor Details

  • Method Details

    • onCreated

      public void onCreated(Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> cacheEntryEvents) throws javax.cache.event.CacheEntryListenerException
      Specified by:
      onCreated in interface javax.cache.event.CacheEntryCreatedListener<K,V>
      Throws:
      javax.cache.event.CacheEntryListenerException
    • onExpired

      public void onExpired(Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> cacheEntryEvents) throws javax.cache.event.CacheEntryListenerException
      Specified by:
      onExpired in interface javax.cache.event.CacheEntryExpiredListener<K,V>
      Throws:
      javax.cache.event.CacheEntryListenerException
    • onRemoved

      public void onRemoved(Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> cacheEntryEvents) throws javax.cache.event.CacheEntryListenerException
      Specified by:
      onRemoved in interface javax.cache.event.CacheEntryRemovedListener<K,V>
      Throws:
      javax.cache.event.CacheEntryListenerException
    • accept

      public void accept(javax.cache.Cache<K,V> cache)
      Specified by:
      accept in interface Consumer<K>