Class JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD>
java.lang.Object
io.helidon.messaging.connectors.jms.JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD>
- Type Parameters:
PAYLOAD
- payload type
- All Implemented Interfaces:
Builder<JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD>,
,Message<PAYLOAD>> Supplier<Message<PAYLOAD>>
- Enclosing interface:
- JmsMessage<PAYLOAD>
public static class JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD>
extends Object
implements Builder<JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD>,Message<PAYLOAD>>
Outgoing JMS message builder.
Makes possible to create JMS message with properties.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.correlationId
(String correlationId) Correlation ID for creatingMessage
.customMapper
(JmsMessage.CustomMapper<PAYLOAD> mapper) Custom mapper used by connector for mapping toMessage
.onAck
(Supplier<CompletionStage<Void>> ack) Callback invoked when message is acknowledged.Set or replace JMS payload.Set JMS of given name.Set JMS of given name.Set JMS of given name.Set JMS of given name.Set JMS of given name.Set JMS of given name.Set JMS of given name.Set JMS of given name.replyTo
(jakarta.jms.Destination replyTo) Destination to which a reply to this message is expected.JMS Message type.
-
Method Details
-
payload
Set or replace JMS payload.- Parameters:
payload
- new payload- Returns:
- this builder
-
property
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- boolean value to stored as JMS property- Returns:
- this builder
-
property
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- byte value to stored as JMS property- Returns:
- this builder
-
property
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- short value to stored as JMS property- Returns:
- this builder
-
property
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- int value to stored as JMS property- Returns:
- this builder
-
property
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- long value to stored as JMS property- Returns:
- this builder
-
property
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- float value to stored as JMS property- Returns:
- this builder
-
property
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- double value to stored as JMS property- Returns:
- this builder
-
property
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- string value to be stored as JMS property- Returns:
- this builder
-
onAck
Callback invoked when message is acknowledged.- Parameters:
ack
- callback- Returns:
- this builder
-
customMapper
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> customMapper(JmsMessage.CustomMapper<PAYLOAD> mapper) Custom mapper used by connector for mapping toMessage
.- Parameters:
mapper
- supplying this message andSession
for manual creation ofMessage
- Returns:
- this builder
-
correlationId
Correlation ID for creatingMessage
.- Parameters:
correlationId
- provider specific or application specific correlation ID- Returns:
- this builder
-
replyTo
Destination to which a reply to this message is expected.- Parameters:
replyTo
- destination to reply to- Returns:
- this builder
-
type
JMS Message type.- Parameters:
type
- the message type- Returns:
- this builder
-
build
Description copied from interface:Builder
Build the instance from this builder.
-