org.wamblee.cache
Interface CachedObject.Computation<Key extends java.io.Serializable,Value extends java.io.Serializable>

Type Parameters:
T - Type of the object
Enclosing class:
CachedObject<KeyType extends java.io.Serializable,ValueType extends java.io.Serializable>

public static interface CachedObject.Computation<Key extends java.io.Serializable,Value extends java.io.Serializable>

Callback invoked to compute an object if it was not found in the cache.


Method Summary
 Value getObject(Key aObjectKey)
          Gets the object.
 

Method Detail

getObject

Value getObject(Key aObjectKey)
Gets the object. Called when the object is not in the cache.

Parameters:
aObjectKey - Id of the object in the cache.
Returns:
Object, must be non-null.


Copyright © 2010. All Rights Reserved.