Package org.shoal.adapter.store.commands
Class LoadResponseCommand<K,V>
- java.lang.Object
-
- org.shoal.ha.cache.impl.command.Command<K,V>
-
- org.shoal.adapter.store.commands.LoadResponseCommand<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
public class LoadResponseCommand<K,V> extends Command<K,V>
- Author:
- Mahesh Kannan
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.shoal.ha.cache.impl.command.Command
dsc, targetInstanceName
-
-
Constructor Summary
Constructors Constructor Description LoadResponseCommand()LoadResponseCommand(K key, long version, byte[] rawV)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanbeforeTransmit()voidexecute(java.lang.String initiator)byte[]getRawV()longgetVersion()voidsetOriginatingInstance(java.lang.String originatingInstance)voidsetTokenId(long tokenId)java.lang.StringtoString()-
Methods inherited from class org.shoal.ha.cache.impl.command.Command
captureState, getCommandManager, getDataStoreContext, getKey, getKeyMappingInfo, getName, getOpcode, getTargetName, initialize, isArtificialKey, onFailure, onSuccess, prepareTransmit, setKey, setTargetName
-
-
-
-
Constructor Detail
-
LoadResponseCommand
public LoadResponseCommand()
-
LoadResponseCommand
public LoadResponseCommand(K key, long version, byte[] rawV)
-
-
Method Detail
-
setTokenId
public void setTokenId(long tokenId)
-
getVersion
public long getVersion()
-
setOriginatingInstance
public void setOriginatingInstance(java.lang.String originatingInstance)
-
getRawV
public byte[] getRawV()
-
beforeTransmit
protected boolean beforeTransmit()
- Specified by:
beforeTransmitin classCommand<K,V>
-
execute
public void execute(java.lang.String initiator) throws DataStoreException- Specified by:
executein classCommand<K,V>- Throws:
DataStoreException
-
-