Interface ForwardingMode<T extends Message<?>>
- All Known Implementing Classes:
ForwardMatchingInstances,ForwardNone,ForwardToAll
public interface ForwardingMode<T extends Message<?>>
Interface describing the required functionality to forward a message. An example implementation is the
ForwardToAll, which forwards all incoming messages.- Since:
- 3.1
- Author:
- Steven van Beelen
-
Method Summary
Modifier and TypeMethodDescription<E> Stream<E> filterCandidates(T message, Stream<E> candidates) default voidinitialize(Member member, EntityModel childEntity) Initializes an instance of aForwardingMode.
-
Method Details
-
initialize
Initializes an instance of aForwardingMode.- Parameters:
member- TheMemberto apply a ForwardingMode on. Provided to be able to check for annotations attributes which might assist in the forwarding process.childEntity- AEntityModelconstructed from the givenfield.
-
filterCandidates
-