public static class MessageDemux.ByKind<M extends Message> extends MessageDemux<Message.Kind,M>
MessageDemux
which sorts messages by their kind. MessageDemux
with Message.Kind
as index type. So its map can contain one MessageReceiver
for each value
of this enumeration.
Every message is propagated to the receiver indicated by
Message.getKind()
.MessageDemux.All<E extends Enum<E>,M extends Message>, MessageDemux.ByKind<M extends Message>
outlets, tagclass
Constructor and Description |
---|
ByKind() |
Modifier and Type | Method and Description |
---|---|
protected EnumSet<Message.Kind> |
getOutputTags(Message m)
Has to be re-defined by derived classes to calculate the set of
enum items which indicate the receivers the message shall be propagated to.
|
all, byKind, receive
getReceiver, receive, setReceiver
protected EnumSet<Message.Kind> getOutputTags(Message m)
MessageDemux
getOutputTags
in class MessageDemux<Message.Kind,M extends Message>
see also the complete user documentation .