Guvnor - Services API 6.2.0.CR2

org.guvnor.common.services.backend.cache
Interface Cache<K,V>

All Known Implementing Classes:
LRUCache

public interface Cache<K,V>

Define operations of a cache


Method Summary
 V getEntry(K key)
          Retrieve the cache entry for the specified key.
 void invalidateCache()
          Invalidate the entire cache
 void invalidateCache(K key)
          Invalidate the cache for a specific key.
 void setEntry(K key, V value)
          Set the cache entry for the specified path.
 

Method Detail

getEntry

V getEntry(K key)
Retrieve the cache entry for the specified key.

Parameters:
key - The cache entry key
Returns:
V The cache entry

setEntry

void setEntry(K key,
              V value)
Set the cache entry for the specified path.

Parameters:
key - The cache entry key
value - The cache entry

invalidateCache

void invalidateCache()
Invalidate the entire cache


invalidateCache

void invalidateCache(K key)
Invalidate the cache for a specific key.

Parameters:
key - The cache entry key

Guvnor - Services API 6.2.0.CR2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.