public class MemvacheDelegate extends Object implements com.google.apphosting.api.ApiProxy.Delegate<com.google.apphosting.api.ApiProxy.Environment>
ApiProxy.Delegate。| Modifier and Type | Method and Description |
|---|---|
static void |
addStrategy(Class<? extends Strategy> clazz)
キャッシュに利用する戦略を追加する。
|
void |
flushLogs(com.google.apphosting.api.ApiProxy.Environment env) |
static MemvacheDelegate |
get()
現在のスレッドに紐付いている
MemvacheDelegate を取得する。 |
static com.google.appengine.api.memcache.MemcacheService |
getMemcache()
Namespaceがセット済みの
MemcacheService を取得する。 |
com.google.apphosting.api.ApiProxy.Delegate<com.google.apphosting.api.ApiProxy.Environment> |
getParent() |
List<Thread> |
getRequestThreads(com.google.apphosting.api.ApiProxy.Environment env) |
static MemvacheDelegate |
install()
MemvacheDelegateをApiProxyに設定する。 |
void |
log(com.google.apphosting.api.ApiProxy.Environment env,
com.google.apphosting.api.ApiProxy.LogRecord logRecord) |
Future<byte[]> |
makeAsyncCall(com.google.apphosting.api.ApiProxy.Environment env,
String service,
String method,
byte[] requestBytes,
com.google.apphosting.api.ApiProxy.ApiConfig config) |
byte[] |
makeSyncCall(com.google.apphosting.api.ApiProxy.Environment env,
String service,
String method,
byte[] requestBytes) |
static void |
removeStrategy(Class<? extends Strategy> clazz)
キャッシュに利用する戦略を削除する。
|
void |
uninstall()
MemvacheDelegateをApiProxyからはずす。 |
static void |
uninstall(com.google.apphosting.api.ApiProxy.Delegate<com.google.apphosting.api.ApiProxy.Environment> originalDelegate)
MemvacheDelegateをApiProxyからはずす。 |
public static MemvacheDelegate get()
MemvacheDelegate を取得する。MemvacheDelegatepublic static MemvacheDelegate install()
MemvacheDelegateか、 既に適用済みだった場合は元々設定されていた
MemvacheDelegatepublic static void addStrategy(Class<? extends Strategy> clazz)
clazz - 追加する戦略public static void removeStrategy(Class<? extends Strategy> clazz)
clazz - 削除する戦略public static void uninstall(com.google.apphosting.api.ApiProxy.Delegate<com.google.apphosting.api.ApiProxy.Environment> originalDelegate)
MemvacheDelegateをApiProxyからはずす。originalDelegate - 元々設定されていたApiProxy.Delegate.
getParent()を使用すると良い。public void uninstall()
MemvacheDelegateをApiProxyからはずす。public Future<byte[]> makeAsyncCall(com.google.apphosting.api.ApiProxy.Environment env, String service, String method, byte[] requestBytes, com.google.apphosting.api.ApiProxy.ApiConfig config)
makeAsyncCall in interface com.google.apphosting.api.ApiProxy.Delegate<com.google.apphosting.api.ApiProxy.Environment>public byte[] makeSyncCall(com.google.apphosting.api.ApiProxy.Environment env,
String service,
String method,
byte[] requestBytes)
throws com.google.apphosting.api.ApiProxy.ApiProxyException
makeSyncCall in interface com.google.apphosting.api.ApiProxy.Delegate<com.google.apphosting.api.ApiProxy.Environment>com.google.apphosting.api.ApiProxy.ApiProxyExceptionpublic static com.google.appengine.api.memcache.MemcacheService getMemcache()
MemcacheService を取得する。MemcacheServicepublic void log(com.google.apphosting.api.ApiProxy.Environment env,
com.google.apphosting.api.ApiProxy.LogRecord logRecord)
log in interface com.google.apphosting.api.ApiProxy.Delegate<com.google.apphosting.api.ApiProxy.Environment>public void flushLogs(com.google.apphosting.api.ApiProxy.Environment env)
flushLogs in interface com.google.apphosting.api.ApiProxy.Delegate<com.google.apphosting.api.ApiProxy.Environment>public List<Thread> getRequestThreads(com.google.apphosting.api.ApiProxy.Environment env)
getRequestThreads in interface com.google.apphosting.api.ApiProxy.Delegate<com.google.apphosting.api.ApiProxy.Environment>public com.google.apphosting.api.ApiProxy.Delegate<com.google.apphosting.api.ApiProxy.Environment> getParent()
Copyright © 2014. All rights reserved.