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.

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

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