Interface JmsMessage.CustomMapper<PAYLOAD>

  • Type Parameters:
    PAYLOAD - The payload.
    All Superinterfaces:
    BiFunction<PAYLOAD,​javax.jms.Session,​javax.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,​javax.jms.Session,​javax.jms.Message>
    Mapper for creating Message.
    • Method Detail

      • apply

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

        javax.jms.Message applyThrows​(PAYLOAD p,
                                      javax.jms.Session session)
                               throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException