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 TypeMethodDescriptiondefault jakarta.jms.Message
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
- Specified by:
apply
in interfaceBiFunction<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
- payloadsession
- session- Returns:
- a new message
- Throws:
jakarta.jms.JMSException
- as thrown by underlying API
-