Interface AmqpMessageBuilder
public interface AmqpMessageBuilder
Builder to create a new
AmqpMessage.
Reference about the different metadata can be found on AMQP message properties.
Note that the body is set using withBodyAs* method depending on the passed type.
-
Method Summary
Modifier and TypeMethodDescriptionapplicationProperties(JsonObject props) build()contentType(String ct) correlationId(String correlationId) static AmqpMessageBuildercreate()creationTime(long ct) deliveryCount(int count) durable(boolean durable) expiryTime(long expiry) firstAcquirer(boolean first) priority(short priority) replyToGroupId(String rt) ttl(long ttl) withBooleanAsBody(boolean v) withBufferAsBody(Buffer buffer) withByteAsBody(byte v) withCharAsBody(char c) withDoubleAsBody(double v) withFloatAsBody(float v) withIntegerAsBody(int v) withJsonArrayAsBody(JsonArray json) withListAsBody(List list) withLongAsBody(long v) withMapAsBody(Map map) withShortAsBody(short v) withSymbolAsBody(String value)
-
Method Details
-
create
- Returns:
- a new instance of
AmqpMessageBuilder
-
build
AmqpMessage build()- Returns:
- the message.
-
priority
-
durable
-
ttl
-
firstAcquirer
-
deliveryCount
-
id
-
address
-
replyTo
-
correlationId
-
withBody
-
withSymbolAsBody
-
subject
-
contentType
-
contentEncoding
-
expiryTime
-
creationTime
-
groupId
-
replyToGroupId
-
applicationProperties
-
withBooleanAsBody
-
withByteAsBody
-
withShortAsBody
-
withIntegerAsBody
-
withLongAsBody
-
withFloatAsBody
-
withDoubleAsBody
-
withCharAsBody
-
withInstantAsBody
-
withUuidAsBody
-
withListAsBody
-
withMapAsBody
-
withBufferAsBody
-
withJsonObjectAsBody
-
withJsonArrayAsBody
-