public class DefaultResponseCachingExtension extends HandlerAdapter implements ResponseCachingExtension
| Constructor and Description |
|---|
DefaultResponseCachingExtension() |
| 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.
|
Map<Method,Long> |
getCacheSizes() |
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(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, pingclose, connect, disconnect, onEventTriggered, onExceptionCaught, onInactive, onRead, onRegisteredpublic static void setCacheExecutor(Executor cacheExecutor)
public static void setClock(Clock clock)
public Task<?> get(Method method, Pair<Addressable,String> key)
get in interface ResponseCachingExtensionpublic void put(Method method, Pair<Addressable,String> key, Task<?> value)
put in interface ResponseCachingExtensionpublic 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 © 2019 Electronic Arts Inc. All rights reserved.