Interface JmsMessage.CustomMapper<PAYLOAD>

Type Parameters:
PAYLOAD - The payload.
All Superinterfaces:
BiFunction<PAYLOAD,jakarta.jms.Session,jakarta.jms.Message>
Enclosing interface:
JmsMessage<PAYLOAD>
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 static interface JmsMessage.CustomMapper<PAYLOAD> extends BiFunction<PAYLOAD,jakarta.jms.Session,jakarta.jms.Message>
Mapper for creating Message.
  • Method Summary

    Modifier and Type
    Method
    Description
    default jakarta.jms.Message
    apply(PAYLOAD p, jakarta.jms.Session session)
     
    jakarta.jms.Message
    applyThrows(PAYLOAD p, jakarta.jms.Session session)
    Helper method to use a lambda that throws a checked exception.

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details

    • apply

      default jakarta.jms.Message apply(PAYLOAD p, jakarta.jms.Session session)
      Specified by:
      apply in interface BiFunction<PAYLOAD,jakarta.jms.Session,jakarta.jms.Message>
    • applyThrows

      jakarta.jms.Message applyThrows(PAYLOAD p, jakarta.jms.Session session) throws jakarta.jms.JMSException
      Helper method to use a lambda that throws a checked exception.
      Parameters:
      p - payload
      session - session
      Returns:
      a new message
      Throws:
      jakarta.jms.JMSException - as thrown by underlying API