Class AmqpSenderOptions
java.lang.Object
io.vertx.amqp.AmqpSenderOptions
Configures the AMQP Sender.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCapability(String capability) Adds a capability to be set on the sender target terminus.Gets the list of capabilities to be set on the sender target terminus.Gets the link properties to be sent in the AMQP attach frame.Gets the source terminus options.Gets the target terminus options.booleanGet whether the link will automatically be marked drained after the send queue drain handler fires in drain mode.booleansetAutoDrained(boolean autoDrained) Sets whether the link is automatically marked drained after the send queue drain handler callback returns if the receiving peer requested that credit be drained.setCapabilities(List<String> capabilities) Sets the list of capabilities to be set on the sender target terminus.setDynamic(boolean dynamic) Sets whether the Target terminus to be used should specify it is 'dynamic', requesting the peer creates a node and names it with a generated address.setLinkName(String linkName) setLinkProperties(Map<String, Object> linkProperties) Sets link properties to be sent in the AMQP attach frame.setSourceOptions(SourceOptions sourceOptions) Sets the source terminus options for fine-grained control over the sender's source terminus.setTargetOptions(TargetOptions targetOptions) Sets the target terminus options for fine-grained control over durability, expiry policy, timeout, and capabilities.toJson()
-
Constructor Details
-
AmqpSenderOptions
public AmqpSenderOptions() -
AmqpSenderOptions
-
AmqpSenderOptions
-
-
Method Details
-
toJson
-
getLinkName
-
setLinkName
-
isDynamic
public boolean isDynamic()- Returns:
- whether the sender is using a dynamic address.
-
setDynamic
Sets whether the Target terminus to be used should specify it is 'dynamic', requesting the peer creates a node and names it with a generated address.The address provided by the peer can then be inspected using the
AmqpSender.address()method on theAmqpSenderreceived once opened.- Parameters:
dynamic- true if the sender should request dynamic creation of a node and address to send to- Returns:
- the options
-
isAutoDrained
public boolean isAutoDrained()Get whether the link will automatically be marked drained after the send queue drain handler fires in drain mode.- Returns:
- whether the link will automatically be drained after the send queue drain handler fires in drain mode
- See Also:
-
setAutoDrained
Sets whether the link is automatically marked drained after the send queue drain handler callback returns if the receiving peer requested that credit be drained.trueby default.- Parameters:
autoDrained- whether the link will automatically be drained after the send queue drain handler fires in drain mode- Returns:
- the options
-
getCapabilities
-
setCapabilities
Sets the list of capabilities to be set on the sender target terminus.- Parameters:
capabilities- the set of target capabilities.- Returns:
- the options
-
addCapability
Adds a capability to be set on the sender target terminus.- Parameters:
capability- the target capability to add, must not benull- Returns:
- the options
-
getLinkProperties
-
setLinkProperties
Sets link properties to be sent in the AMQP attach frame. Keys are converted to AMQP Symbol type when applied.- Parameters:
linkProperties- the link properties map- Returns:
- the options
-
getSourceOptions
Gets the source terminus options.- Returns:
- the source options, or
nullif not set.
-
setSourceOptions
Sets the source terminus options for fine-grained control over the sender's source terminus.- Parameters:
sourceOptions- the source terminus options- Returns:
- the options
-
getTargetOptions
Gets the target terminus options.- Returns:
- the target options, or
nullif not set.
-
setTargetOptions
Sets the target terminus options for fine-grained control over durability, expiry policy, timeout, and capabilities.If
TargetOptions.getCapabilities()is set, it overrides the capabilities set viasetCapabilities(List)andaddCapability(String).If
TargetOptions.getAddress()is set, it overrides the address passed toAmqpConnection.createSender(String, AmqpSenderOptions). It may also conflict with thesetDynamic(boolean)option, which requests the peer to generate the target address.- Parameters:
targetOptions- the target terminus options- Returns:
- the options
-