P
- the expected payload
type.@FunctionalInterface public interface GenericHandler<P>
MessageHandler
logic with Java 8 Lambda expression:
.<Integer>handle((p, h) -> p / 2)
Modifier and Type | Method and Description |
---|---|
Object |
handle(P payload,
MessageHeaders headers) |
Object handle(P payload, MessageHeaders headers)