public class RpcCallCache extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RpcCallCache.CacheEntry |
static class |
RpcCallCache.ClientRequest
Call that is used to track a client in the
RpcCallCache |
Constructor and Description |
---|
RpcCallCache(String program,
int maxEntries) |
Modifier and Type | Method and Description |
---|---|
void |
callCompleted(InetAddress clientId,
int xid,
RpcResponse response)
Mark a request as completed and add corresponding response to the cache
|
RpcCallCache.CacheEntry |
checkOrAddToCache(InetAddress clientId,
int xid)
Check the cache for an entry.
|
String |
getProgram()
Return the program name
|
Iterator<Map.Entry<RpcCallCache.ClientRequest,RpcCallCache.CacheEntry>> |
iterator()
Iterator to the cache entries
|
int |
size()
Return number of cached entries
|
public RpcCallCache(String program, int maxEntries)
public String getProgram()
public void callCompleted(InetAddress clientId, int xid, RpcResponse response)
public RpcCallCache.CacheEntry checkOrAddToCache(InetAddress clientId, int xid)
public int size()
public Iterator<Map.Entry<RpcCallCache.ClientRequest,RpcCallCache.CacheEntry>> iterator()
Copyright © 2013 Apache Software Foundation. All rights reserved.