|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.transaction.StorePutCommand
public class StorePutCommand
Represents a Store.put(net.sf.ehcache.Element)
put} operation to be executed on a Store
.
Field Summary |
---|
Fields inherited from interface net.sf.ehcache.transaction.Command |
---|
EXPIRE_ALL_ELEMENTS, NULL, PUT, PUT_WITH_WRITER, REMOVE, REMOVE_ALL, REMOVE_WITH_WRITER |
Constructor Summary | |
---|---|
StorePutCommand(Element element)
Constructs a put command for an Element |
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()
|
Element |
getElement()
Getter to the Element instance to be put in the Store |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StorePutCommand(Element element)
element
- to put in the store on execute(net.sf.ehcache.store.Store)
Method Detail |
---|
public boolean execute(Store store)
execute
in interface Command
store
- the Store on which to execute the command
public boolean execute(CacheWriterManager cacheWriterManager)
execute
in interface Command
cacheWriterManager
- the CacheWriterManager on which to execute the command
public boolean isPut(java.lang.Object key)
isPut
in interface Command
key
- the key
public boolean isRemove(java.lang.Object key)
isRemove
in interface Command
key
- the key
public Element getElement()
public java.lang.String getCommandName()
getCommandName
in interface Command
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |