Package eu.bandm.tools.message
Class SimpleMessage.LocationMapper<D,E>
java.lang.Object
eu.bandm.tools.message.SingleSender<SimpleMessage<E>>
eu.bandm.tools.message.SimpleMessage.LocationMapper<D,E>
- All Implemented Interfaces:
MessageReceiver<SimpleMessage<D>>
- Enclosing class:
- SimpleMessage<D>
public static class SimpleMessage.LocationMapper<D,E>
extends SingleSender<SimpleMessage<E>>
implements MessageReceiver<SimpleMessage<D>>
Passes all incoming messages to its drain, after applying the
given location map.
-
Field Summary
Modifier and TypeFieldDescription(package private) final LocationMap<D,
E> (package private) final Function<SimpleMessage<D>,
SimpleMessage<E>> Fields inherited from class eu.bandm.tools.message.SingleSender
receiver
-
Constructor Summary
ConstructorDescriptionLocationMapper
(MessageReceiver<SimpleMessage<E>> drain, LocationMap<D, E> map) -
Method Summary
Methods inherited from class eu.bandm.tools.message.SingleSender
getReceiver, send, setReceiver
-
Field Details
-
map
-
mapMessages
-
-
Constructor Details
-
LocationMapper
-
-
Method Details
-
receive
Description copied from interface:MessageReceiver
Evident- Specified by:
receive
in interfaceMessageReceiver<D>
-