|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.keridwen.core.messaging.internal.ParallelScheme<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 ParallelScheme<U extends Serializable,V extends Serializable>
A ParallelScheme
executes a list of Command
s in parallel.
Constructor Summary | |
---|---|
ParallelScheme()
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 ParallelScheme()
Method Detail |
---|
public final U execute(V message) throws CommandException
Scheme
Command
s with the given Event
.
execute
in interface Scheme<U extends Serializable,V extends Serializable>
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 extends Serializable,V extends Serializable>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |