Class SourceOptions
java.lang.Object
io.vertx.amqp.SourceOptions
Configures an AMQP source terminus.
Maps to the AMQP 1.0 Source terminus properties: durability, expiry policy, timeout, and capabilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the source terminus address.Gets the list of capabilities to be set on the source terminus.Gets the source terminus durability.Gets the source terminus expiry policy.intGets the source terminus timeout in seconds.setAddress(String address) Sets the source terminus address.setCapabilities(List<String> capabilities) Sets the list of capabilities to be set on the source terminus.setDurability(String durability) Sets the source terminus durability.setExpiryPolicy(String expiryPolicy) Sets the source terminus expiry policy.setTimeout(int timeout) Sets the source terminus timeout in seconds.toJson()
-
Constructor Details
-
SourceOptions
public SourceOptions() -
SourceOptions
-
SourceOptions
-
-
Method Details
-
toJson
-
getAddress
Gets the source terminus address.- Returns:
- the address, or
nullif not set.
-
setAddress
Sets the source terminus address.- Parameters:
address- the address to set- Returns:
- the options
-
getDurability
Gets the source terminus durability.- Returns:
- the durability, or
nullif not set.
-
setDurability
Sets the source terminus durability.Accepted values (case-insensitive):
NONE,CONFIGURATION,UNSETTLED_STATE.- Parameters:
durability- the durability to set- Returns:
- the options
- Throws:
IllegalArgumentException- if the value does not match a valid durability
-
getExpiryPolicy
Gets the source terminus expiry policy.- Returns:
- the expiry policy, or
nullif not set.
-
setExpiryPolicy
Sets the source terminus expiry policy.Accepted values (case-insensitive):
LINK_DETACH,SESSION_END,CONNECTION_CLOSE,NEVER.- Parameters:
expiryPolicy- the expiry policy to set- Returns:
- the options
- Throws:
IllegalArgumentException- if the value does not match a valid expiry policy
-
getTimeout
public int getTimeout()Gets the source terminus timeout in seconds.- Returns:
- the timeout, or
-1if not set.
-
setTimeout
Sets the source terminus timeout in seconds. A value of0means the terminus does not expire. A value of-1(default) means not set.- Parameters:
timeout- the timeout in seconds- Returns:
- the options
-
getCapabilities
-
setCapabilities
Sets the list of capabilities to be set on the source terminus.- Parameters:
capabilities- the capabilities.- Returns:
- the options
-