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
  • Method Summary

    Modifier and Type
    Method
    Description
    handle(P payload, org.springframework.messaging.MessageHeaders headers)
     
  • Method Details

    • handle

      Object handle(P payload, org.springframework.messaging.MessageHeaders headers)