public interface Computable<K,V>
Cache
.Modifier and Type | Method and Description |
---|---|
V |
compute(K key)
Defines an expensive computation to retrieve value V from key K.
|
V compute(K key) throws ComputationErrorException
key
- input data.ComputationErrorException
- if the computation performed should
be returned by the cache but should not be kept in the cache associated
with the keyCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.