eXo Kernel :: Component :: Cache Service 2.5.0-Alpha4

org.exoplatform.services.cache.concurrent
Class ListenerContext<K,V>

java.lang.Object
  extended by org.exoplatform.services.cache.concurrent.ListenerContext<K,V>
All Implemented Interfaces:
CacheInfo, CacheListenerContext

public class ListenerContext<K,V>
extends Object
implements CacheListenerContext, CacheInfo

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ListenerContext(CacheListener<? super K,? super V> listener, ConcurrentFIFOExoCache cache)
           
 
Method Summary
 CacheInfo getCacheInfo()
          Returns cache infos.
 long getLiveTime()
          Returns the cache entry life time in seconds.
 int getMaxSize()
          Returns the cache max size.
 String getName()
          Returns the cache name.
 int getSize()
          Returns the cache size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerContext

public ListenerContext(CacheListener<? super K,? super V> listener,
                       ConcurrentFIFOExoCache cache)
Method Detail

getCacheInfo

public CacheInfo getCacheInfo()
Description copied from interface: CacheListenerContext
Returns cache infos.

Specified by:
getCacheInfo in interface CacheListenerContext
Returns:
cache info

getName

public String getName()
Description copied from interface: CacheInfo
Returns the cache name.

Specified by:
getName in interface CacheInfo
Returns:
the cache name

getMaxSize

public int getMaxSize()
Description copied from interface: CacheInfo
Returns the cache max size.

Specified by:
getMaxSize in interface CacheInfo
Returns:
the max size

getLiveTime

public long getLiveTime()
Description copied from interface: CacheInfo
Returns the cache entry life time in seconds.

Specified by:
getLiveTime in interface CacheInfo
Returns:
the life time

getSize

public int getSize()
Description copied from interface: CacheInfo
Returns the cache size.

Specified by:
getSize in interface CacheInfo
Returns:
the size

eXo Kernel :: Component :: Cache Service 2.5.0-Alpha4

Copyright © 2014 eXo Platform SAS. All Rights Reserved.