public class MessageKindFilter<M extends Message> extends SingleSender<M> implements MessageReceiver<M>
Message.Kind
of which is currently added.Modifier and Type | Field and Description |
---|---|
protected Set<Message.Kind> |
kinds |
receiver
Constructor and Description |
---|
MessageKindFilter(MessageReceiver<? super M> d) |
MessageKindFilter(MessageReceiver<? super M> d,
Message.Kind... kk) |
Modifier and Type | Method and Description |
---|---|
void |
addAllCriticalKinds()
adds all
Message.Kind s which are marked as critical. |
void |
addAllKinds() |
void |
addKind(Message.Kind... kk) |
void |
addKind(Message.Kind k) |
void |
receive(M m) |
void |
removeAllKinds() |
void |
removeKind(Message.Kind... kk) |
void |
removeKind(Message.Kind k) |
getReceiver, send, setReceiver
protected Set<Message.Kind> kinds
public MessageKindFilter(MessageReceiver<? super M> d)
public MessageKindFilter(MessageReceiver<? super M> d, Message.Kind... kk)
public void addAllCriticalKinds()
public void addKind(Message.Kind k)
public void addKind(Message.Kind... kk)
public void addAllKinds()
public void removeKind(Message.Kind k)
public void removeKind(Message.Kind... kk)
public void removeAllKinds()
public void receive(M m)
receive
in interface MessageReceiver<M extends Message>
see also the complete user documentation .