|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Command
A Command represents an operation to be executed on a Store.
| Field Summary | |
|---|---|
static java.lang.String |
EXPIRE_ALL_ELEMENTS
Store.expireElements() command |
static java.lang.String |
NULL
No op command |
static java.lang.String |
PUT
Store.putWithWriter(net.sf.ehcache.Element, net.sf.ehcache.writer.CacheWriterManager) command |
static java.lang.String |
PUT_WITH_WRITER
Store.put(net.sf.ehcache.Element) command |
static java.lang.String |
REMOVE
Store.remove(Object) command |
static java.lang.String |
REMOVE_ALL
Store.removeAll() |
static java.lang.String |
REMOVE_WITH_WRITER
Store.removeWithWriter(Object, net.sf.ehcache.writer.CacheWriterManager) command |
| Method Summary | |
|---|---|
boolean |
execute(CacheWriterManager cacheWriterManager)
Executes the command on some cacheWriterManager |
boolean |
execute(Store store)
Executes the command on some store |
java.lang.String |
getCommandName()
|
boolean |
isPut(java.lang.Object key)
Is this command represents adding a key to the store |
boolean |
isRemove(java.lang.Object key)
Is this command represents removing a key to the store |
| Field Detail |
|---|
static final java.lang.String NULL
static final java.lang.String PUT_WITH_WRITER
Store.put(net.sf.ehcache.Element) command
static final java.lang.String PUT
Store.putWithWriter(net.sf.ehcache.Element, net.sf.ehcache.writer.CacheWriterManager) command
static final java.lang.String REMOVE
Store.remove(Object) command
static final java.lang.String REMOVE_WITH_WRITER
Store.removeWithWriter(Object, net.sf.ehcache.writer.CacheWriterManager) command
static final java.lang.String EXPIRE_ALL_ELEMENTS
Store.expireElements() command
static final java.lang.String REMOVE_ALL
Store.removeAll()
| Method Detail |
|---|
java.lang.String getCommandName()
boolean execute(Store store)
store - the Store on which to execute the command
boolean execute(CacheWriterManager cacheWriterManager)
cacheWriterManager - the CacheWriterManager on which to execute the command
boolean isPut(java.lang.Object key)
key - the key
boolean isRemove(java.lang.Object key)
key - the key
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||