Package io.vertx.amqp
Interface AmqpMessageBuilder
-
public interface AmqpMessageBuilder
Builder to create a newAmqpMessage
.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
-
-
-
Method Detail
-
create
static AmqpMessageBuilder create()
- Returns:
- a new instance of
AmqpMessageBuilder
-
build
AmqpMessage build()
- Returns:
- the message.
-
priority
AmqpMessageBuilder priority(short priority)
-
durable
AmqpMessageBuilder durable(boolean durable)
-
ttl
AmqpMessageBuilder ttl(long ttl)
-
firstAcquirer
AmqpMessageBuilder firstAcquirer(boolean first)
-
deliveryCount
AmqpMessageBuilder deliveryCount(int count)
-
id
AmqpMessageBuilder id(String id)
-
address
AmqpMessageBuilder address(String address)
-
replyTo
AmqpMessageBuilder replyTo(String replyTo)
-
correlationId
AmqpMessageBuilder correlationId(String correlationId)
-
withBody
AmqpMessageBuilder withBody(String value)
-
withSymbolAsBody
AmqpMessageBuilder withSymbolAsBody(String value)
-
subject
AmqpMessageBuilder subject(String subject)
-
contentType
AmqpMessageBuilder contentType(String ct)
-
contentEncoding
AmqpMessageBuilder contentEncoding(String ct)
-
expiryTime
AmqpMessageBuilder expiryTime(long expiry)
-
creationTime
AmqpMessageBuilder creationTime(long ct)
-
groupId
AmqpMessageBuilder groupId(String gi)
-
replyToGroupId
AmqpMessageBuilder replyToGroupId(String rt)
-
applicationProperties
AmqpMessageBuilder applicationProperties(JsonObject props)
-
withBooleanAsBody
AmqpMessageBuilder withBooleanAsBody(boolean v)
-
withByteAsBody
AmqpMessageBuilder withByteAsBody(byte v)
-
withShortAsBody
AmqpMessageBuilder withShortAsBody(short v)
-
withIntegerAsBody
AmqpMessageBuilder withIntegerAsBody(int v)
-
withLongAsBody
AmqpMessageBuilder withLongAsBody(long v)
-
withFloatAsBody
AmqpMessageBuilder withFloatAsBody(float v)
-
withDoubleAsBody
AmqpMessageBuilder withDoubleAsBody(double v)
-
withCharAsBody
AmqpMessageBuilder withCharAsBody(char c)
-
withInstantAsBody
AmqpMessageBuilder withInstantAsBody(java.time.Instant v)
-
withUuidAsBody
AmqpMessageBuilder withUuidAsBody(UUID v)
-
withListAsBody
AmqpMessageBuilder withListAsBody(List list)
-
withMapAsBody
AmqpMessageBuilder withMapAsBody(Map map)
-
withBufferAsBody
AmqpMessageBuilder withBufferAsBody(Buffer buffer)
-
withJsonObjectAsBody
AmqpMessageBuilder withJsonObjectAsBody(JsonObject json)
-
withJsonArrayAsBody
AmqpMessageBuilder withJsonArrayAsBody(JsonArray json)
-
-