Interface AmqpClient.SendSpec
- Enclosing interface:
AmqpClient
public static interface AmqpClient.SendSpec
The fluent API for the send operation based on the message building blocks starting with
to address.- Since:
- 4.1
- Author:
- Artem Bilan
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe fluent API for the send operation based on the message building blocks starting withtoaddress.static interfaceThe last step in the fluent API for the send operation. -
Method Summary
Modifier and TypeMethodDescriptionCreate aAmqpClient.SendSpec.ConvertAndSendSpecfrom the provided body.protonMessage(org.apache.qpid.protonj2.client.Message<?> protonMessage) Create aAmqpClient.SendSpec.MessageSendSpecfrom a ProtonJ message instance.
-
Method Details
-
message
-
protonMessage
AmqpClient.SendSpec.MessageSendSpec protonMessage(org.apache.qpid.protonj2.client.Message<?> protonMessage) Create aAmqpClient.SendSpec.MessageSendSpecfrom a ProtonJ message instance. The default implementation sets theMessage.to()from the providedAmqpClient.to(String).- Parameters:
protonMessage- the message to send.- Returns:
- the
AmqpClient.SendSpec.MessageSendSpec.
-
body
Create aAmqpClient.SendSpec.ConvertAndSendSpecfrom the provided body.- Parameters:
body- the payload to be converted into a message body.- Returns:
- the
AmqpClient.SendSpec.ConvertAndSendSpec.
-