Class JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD>
- java.lang.Object
-
- io.helidon.messaging.connectors.jms.JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD>
-
- Type Parameters:
PAYLOAD
- payload type
- Enclosing interface:
- JmsMessage<PAYLOAD>
public static class JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> extends Object implements Builder<Message<PAYLOAD>>
Outgoing JMS message builder. Makes possible to create JMS message with properties.
-
-
Method Summary
-
-
-
Method Detail
-
payload
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> payload(PAYLOAD payload)
Set or replace JMS payload.- Parameters:
payload
- new payload- Returns:
- this builder
-
property
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> property(String name, boolean value)
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- boolean value to stored as JMS property- Returns:
- this builder
-
property
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> property(String name, byte value)
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- byte value to stored as JMS property- Returns:
- this builder
-
property
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> property(String name, short value)
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- short value to stored as JMS property- Returns:
- this builder
-
property
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> property(String name, int value)
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- int value to stored as JMS property- Returns:
- this builder
-
property
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> property(String name, long value)
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- long value to stored as JMS property- Returns:
- this builder
-
property
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> property(String name, float value)
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- float value to stored as JMS property- Returns:
- this builder
-
property
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> property(String name, double value)
Set JMS of given name.- Parameters:
name
- the name of the JMS propertyvalue
- double value to stored as JMS property- Returns:
- this builder
-
property
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> property(String name, String value)
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
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> onAck(Supplier<CompletionStage<Void>> ack)
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
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> correlationId(String correlationId)
Correlation ID for creatingMessage
.- Parameters:
correlationId
- provider specific or application specific correlation ID- Returns:
- this builder
-
replyTo
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> replyTo(javax.jms.Destination replyTo)
Destination to which a reply to this message is expected.- Parameters:
replyTo
- destination to reply to- Returns:
- this builder
-
type
public JmsMessage.OutgoingJmsMessageBuilder<PAYLOAD> type(String type)
JMS Message type.- Parameters:
type
- the message type- Returns:
- this builder
-
-