|
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.

| Method Summary | |
|---|---|
boolean |
execute(CacheWriterManager cacheWriterManager)
Executes the command on some cacheWriterManager |
boolean |
execute(Store store)
Executes the command on some store |
String |
getCommandName()
|
boolean |
isPut(Object key)
Is this command represents adding a key to the store |
boolean |
isRemove(Object key)
Is this command represents removing a key to the store |
| Field Detail |
|---|
static final String NULL
static final String PUT_WITH_WRITER
Store.put(net.sf.ehcache.Element) command
static final String PUT
Store.putWithWriter(net.sf.ehcache.Element, net.sf.ehcache.writer.CacheWriterManager) command
static final String REMOVE
Store.remove(Object) command
static final String REMOVE_WITH_WRITER
Store.removeWithWriter(Object, net.sf.ehcache.writer.CacheWriterManager) command
static final String EXPIRE_ALL_ELEMENTS
Store.expireElements() command
static final String REMOVE_ALL
Store.removeAll()
static final String PUT_IF_ABSENT
Store.putIfAbsent(net.sf.ehcache.Element)
static final String REMOVE_ELEMENT
Store.removeElement(net.sf.ehcache.Element, net.sf.ehcache.store.ElementValueComparator)
static final String REPLACE_ELEMENT
Store.replace(net.sf.ehcache.Element, net.sf.ehcache.Element, net.sf.ehcache.store.ElementValueComparator)
static final String REPLACE
Store.replace(net.sf.ehcache.Element)
| Method Detail |
|---|
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(Object key)
key - the key
boolean isRemove(Object key)
key - the key
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||