Class NoopCachePolicy
- java.lang.Object
 - 
- org.opendaylight.infrautils.caches.noop.internal.NoopCachePolicy
 
 
- 
- All Implemented Interfaces:
 CachePolicy
public class NoopCachePolicy extends Object implements CachePolicy
No Operation ("NOOP") implementation of CachePolicy.- Author:
 - Michael Vorburger.ch
 
 
- 
- 
Field Summary
- 
Fields inherited from interface org.opendaylight.infrautils.caches.CachePolicy
UNLIMITED_ENTRIES 
 - 
 
- 
Constructor Summary
Constructors Constructor Description NoopCachePolicy() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longmaxEntries()Specifies the maximum number of entries the cache may contain.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.opendaylight.infrautils.caches.CachePolicy
statsEnabled 
 - 
 
 - 
 
- 
- 
Method Detail
- 
maxEntries
public long maxEntries()
Description copied from interface:CachePolicySpecifies the maximum number of entries the cache may contain. When this limit is reached, existing entries are evicted to accomodate new entries.The default is
CachePolicy.UNLIMITED_ENTRIES.Users are encourage to set the maximum entries policy suitable to their actual usage of the cache; either programmatically in code, or by runtime configuration.
- Specified by:
 maxEntriesin interfaceCachePolicy
 
 - 
 
 -