|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.keridwen.core.messaging.internal.SequenceScheme<U,V>
U
- type of the value returned by the last Command
of the list.V
- type of the message the first Command
of the list can handle.public class SequenceScheme<U,V>
A sequential scheme is a scheme that executes a series of Command
sequentially (i.e. in the same
thread).
Constructor Summary | |
---|---|
SequenceScheme()
Default constructor. |
Method Summary | |
---|---|
U |
execute(V message)
Executes the given list of Command s with the given Event . |
List<Command<U,V>> |
getCommandsList()
Gets the list of Command s managed by the scheme. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SequenceScheme()
Method Detail |
---|
public final U execute(V message) throws CommandException
Scheme
Command
s with the given Event
.
execute
in interface Scheme<U,V>
message
- the message to handle
CommandException
public final List<Command<U,V>> getCommandsList()
Scheme
Command
s managed by the scheme.
getCommandsList
in interface Scheme<U,V>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |