public class MemoryCommandCacheEngine extends java.lang.Object implements ICommandCacheEngine
Modifier and Type | Field and Description |
---|---|
ConnectionState |
connectionState |
Constructor and Description |
---|
MemoryCommandCacheEngine() |
Modifier and Type | Method and Description |
---|---|
boolean |
addCacheEntry(Command command,
<any> response) |
void |
clear() |
<any> |
clear(Command command)
Clear cache for this command
|
ConnectionState |
getConnectionState() |
boolean |
inCache(Command command) |
boolean |
isConnected() |
MemoryCommandCacheEngine |
setConnectionState(ConnectionState state) |
public MemoryCommandCacheEngine setConnectionState(ConnectionState state)
public ConnectionState getConnectionState()
public boolean isConnected()
public boolean inCache(Command command)
inCache
in interface ICommandCacheEngine
public boolean addCacheEntry(Command command, <any> response)
addCacheEntry
in interface ICommandCacheEngine
public <any> clear(Command command)
ICommandCacheEngine
clear
in interface ICommandCacheEngine
command
- the command to clearpublic void clear()
clear
in interface ICommandCacheEngine