K - the Cache key type.V - the Cache value type.P - the Cache.singleInvoke(Object, String, byte[], Duration)} param type or Void if no parameter is used.R - the Cache.singleInvoke(Object, String, Duration) result type.public interface CacheEntryMethodInvocationHandler<K,V,P,R>
Cache.singleInvoke(Object, String, Duration) operations.| Modifier and Type | Method and Description |
|---|---|
R |
evaluate(K key,
OperationContext<K,V,P> ctx)
Map a key into the thread-local accumulator and return the accumulated result.
|
byte[] |
serializeResult(R result)
Serialize a result value into binary data.
|
R evaluate(K key, OperationContext<K,V,P> ctx)
key - the key.ctx - the OperationContextbyte[] serializeResult(R result)
result - the result object.R.