se.kth.leiflindback.distdb.db
Interface Command
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- DepositCommand, InterestCommand, WithdrawCommand
public interface Command
- extends java.io.Serializable
All commands sent between nodes are implementations of this interface. This is
the command (GoF) pattern.
Method Summary |
void |
execute(Account account)
Executes the task of the command implementation. |
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
execute
void execute(Account account)
- Executes the task of the command implementation.
- Parameters:
account
- The account on wiich to invoke the command,