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