public class ResponseCache
extends java.lang.Object
Constructor and Description |
---|
ResponseCache() |
Modifier and Type | Method and Description |
---|---|
void |
add(Response<?> resp)
Add a response to the cache.
|
Response<?> |
byId(int id)
Returns a response by its Id, if available.
|
void |
cleanCache() |
void |
close()
Closes the response cache.
|
void |
remove(Response<?> resp)
Removes a response from the cache.
|
int |
size() |
public void cleanCache()
public void add(Response<?> resp)
id
- resp
- the response.public void remove(Response<?> resp)
resp
- The response to remove.public Response<?> byId(int id)
id
- The response ID.public int size()
public void close()