Package org.apache.qpid.protonj2.client
Class SourceOptions
java.lang.Object
org.apache.qpid.protonj2.client.TerminusOptions<SourceOptions>
org.apache.qpid.protonj2.client.SourceOptions
- All Implemented Interfaces:
Cloneable
Options type that carries configuration for link Source types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClientDeliveryState
The default AMQP Outcome that will be specified for all newReceiver
instances. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds the given named filter into the map of filters (one will be created if not already set).clone()
protected SourceOptions
copyInto
(SourceOptions other) Copy all options from thisSourceOptions
instance into the instance provided.defaultOutcome
(DeliveryState defaultOutcome) distributionMode
(DistributionMode distributionMode) filters()
outcomes()
outcomes
(DeliveryState.Type... outcomes) Methods inherited from class org.apache.qpid.protonj2.client.TerminusOptions
capabilities, capabilities, copyInto, durabilityMode, durabilityMode, expiryPolicy, expiryPolicy, timeout, timeout
-
Field Details
-
DEFAULT_RECEIVER_OUTCOME
The default AMQP Outcome that will be specified for all newReceiver
instances.
-
-
Constructor Details
-
SourceOptions
public SourceOptions()
-
-
Method Details
-
clone
-
copyInto
Copy all options from thisSourceOptions
instance into the instance provided.- Parameters:
other
- the target of this copy operation.- Returns:
- this
SourceOptions
instance.
-
distributionMode
- Returns:
- the distributionMode
-
distributionMode
- Parameters:
distributionMode
- the distributionMode to set- Returns:
- this
SourceOptions
instance.
-
filters
- Returns:
- the filters
-
filters
- Parameters:
filters
- the filters to set- Returns:
- this
SourceOptions
instance.
-
addFilter
Adds the given named filter into the map of filters (one will be created if not already set).If a previous filters
Map
was assigned this new filter instance will be assigned into that existing map, it is not cleared or reallocated. The descriptor should either be an Symbol or UnsignedLong that aligns with the filters definition being used.- Parameters:
name
- The name to use when adding the described filter to the filtersMap
.descriptor
- The descriptor used for theDescribedType
that will carry the filter.filter
- The filter value to assign to the filterDescribedType
.- Returns:
- this
SourceOptions
instance.
-
defaultOutcome
- Returns:
- the configured default outcome as a
DeliveryState
instance.
-
defaultOutcome
- Parameters:
defaultOutcome
- The default outcome to assign to the created link source.- Returns:
- this
SourceOptions
instance.
-
outcomes
- Returns:
- the currently configured supported outcomes to be used on the create link.
-
outcomes
- Parameters:
outcomes
- The supported outcomes for the link createdSource
.- Returns:
- this
SourceOptions
instance.
-