Interface GenericHandler<P>

Type Parameters:
P - the expected payload type.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface GenericHandler<P>
A functional interface to specify MessageHandler logic with Java 8 Lambda expression:
 
  .<Integer>handle((p, h) -> p / 2)
 
 
Since:
5.0
Author:
Artem Bilan
  • Method Summary

    Modifier and Type Method Description
    Object handle​(P payload, MessageHeaders headers)