org.ehcache.core
Interface InternalCache<K,V>

All Superinterfaces:
Cache<K,V>, java.lang.Iterable<Cache.Entry<K,V>>, UserManagedCache<K,V>
All Known Implementing Classes:
Ehcache, EhcacheWithLoaderWriter

public interface InternalCache<K,V>
extends UserManagedCache<K,V>

Extension of the Cache and UserManagedCache interfaces defining common methods used by collaborators of Cache implementations.

Ehcache users should not have to depend on this type but rely exclusively on the api types in package org.ehcache.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ehcache.Cache
Cache.Entry<K,V>
 
Method Summary
 void addHook(LifeCycled hook)
          Add lifecycle hooks
 java.util.Map<BulkOps,org.terracotta.statistics.jsr166e.LongAdder> getBulkMethodEntries()
          BulkMethodEntries
 CacheLoaderWriter<? super K,V> getCacheLoaderWriter()
          CacheLoaderWriter
 Jsr107Cache<K,V> getJsr107Cache()
          Jsr107Cache
 
Methods inherited from interface org.ehcache.UserManagedCache
close, getStatus, init
 
Methods inherited from interface org.ehcache.Cache
clear, containsKey, get, getAll, getRuntimeConfiguration, put, putAll, putIfAbsent, remove, remove, removeAll, replace, replace
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getBulkMethodEntries

java.util.Map<BulkOps,org.terracotta.statistics.jsr166e.LongAdder> getBulkMethodEntries()
BulkMethodEntries

Returns:
BulkMethodEntries

getJsr107Cache

Jsr107Cache<K,V> getJsr107Cache()
Jsr107Cache

Returns:
Jsr107Cache

getCacheLoaderWriter

CacheLoaderWriter<? super K,V> getCacheLoaderWriter()
CacheLoaderWriter

Returns:
CacheLoaderWriter

addHook

void addHook(LifeCycled hook)
Add lifecycle hooks

Parameters:
hook - hook it to lifecycle