public class ResponseCaching extends HandlerAdapter implements ExecutionCacheFlushObserver
| Constructor and Description |
|---|
ResponseCaching() |
| Modifier and Type | Method and Description |
|---|---|
Task<Void> |
flush(Actor actor) |
Task<Void> |
flushWithoutWaiting(Actor actor) |
Task<?> |
get(Method method,
Pair<Addressable,String> key)
Retrieves a cached value for an actor's method.
|
void |
onActive(HandlerContext ctx) |
void |
put(Method method,
Pair<Addressable,String> key,
Task<?> value)
Caches a value for an actor's method.
|
static void |
setCacheExecutor(Executor cacheExecutor) |
static void |
setClock(java.time.Clock clock) |
void |
setMessageSerializer(MessageSerializer messageSerializer) |
void |
setObjectCloner(ExecutionObjectCloner objectCloner) |
void |
setRuntime(BasicRuntime runtime) |
Task |
write(HandlerContext ctx,
Object msg) |
close, connect, disconnect, onEventTriggered, onExceptionCaught, onInactive, onRead, onRegisteredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetObserverReference, pingpublic static void setCacheExecutor(Executor cacheExecutor)
public static void setClock(java.time.Clock clock)
public Task<?> get(Method method, Pair<Addressable,String> key)
public void put(Method method, Pair<Addressable,String> key, Task<?> value)
public Task<Void> flush(Actor actor)
flush in interface ExecutionCacheFlushObserverpublic void setObjectCloner(ExecutionObjectCloner objectCloner)
public Task<Void> flushWithoutWaiting(Actor actor)
flushWithoutWaiting in interface ExecutionCacheFlushObserverpublic Task write(HandlerContext ctx, Object msg) throws Exception
write in interface Handlerwrite in class HandlerAdapterExceptionpublic void onActive(HandlerContext ctx) throws Exception
onActive in interface HandleronActive in class HandlerAdapterExceptionpublic void setMessageSerializer(MessageSerializer messageSerializer)
public void setRuntime(BasicRuntime runtime)
Copyright © 2016 Electronic Arts Inc. All rights reserved.