org.d_haven.event.command
Interface Command

All Known Subinterfaces:
DelayedCommand, RepeatedCommand

public interface Command

A Command is a specific type of event that denotes an asynchronous execution unit that must be performed by the DefaultCommandManager.

The interface design is heavily influenced by Matt Welsh's SandStorm server, his demonstration of the SEDA architecture. We have deviated where we felt the design differences where better.

Author:
Berin Loritsch

Method Summary
 void execute()
          The code to execute when the CommandManager acts on it.
 

Method Detail

execute

void execute()
             throws java.lang.Exception
The code to execute when the CommandManager acts on it.

Throws:
java.lang.Exception - if there was a problem with the exception.