org.shoal.adapter.store.commands
Class AcknowledgedCommand<K,V>

java.lang.Object
  extended by org.shoal.ha.cache.impl.command.Command<K,V>
      extended by org.shoal.adapter.store.commands.AcknowledgedCommand<K,V>
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AbstractSaveCommand, RemoveCommand

public abstract class AcknowledgedCommand<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
protected AcknowledgedCommand(byte opCode)
           
 
Method Summary
protected  boolean beforeTransmit()
           
 void onFailure()
           
 void onSuccess()
           
protected  void sendAcknowledgement()
           
 
Methods inherited from class org.shoal.ha.cache.impl.command.Command
captureState, execute, getCommandManager, getDataStoreContext, getKey, getKeyMappingInfo, getName, getOpcode, getTargetName, initialize, isArtificialKey, prepareTransmit, setKey, setTargetName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AcknowledgedCommand

protected AcknowledgedCommand(byte opCode)
Method Detail

beforeTransmit

protected boolean beforeTransmit()
Specified by:
beforeTransmit in class Command<K,V>

sendAcknowledgement

protected void sendAcknowledgement()

onSuccess

public final void onSuccess()
Overrides:
onSuccess in class Command<K,V>

onFailure

public final void onFailure()
Overrides:
onFailure in class Command<K,V>


Copyright © 2012. All Rights Reserved.