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 ClientDeliveryStateThe default AMQP Outcome that will be specified for all newReceiverinstances. -
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 SourceOptionscopyInto(SourceOptions other) Copy all options from thisSourceOptionsinstance 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 newReceiverinstances.
-
-
Constructor Details
-
SourceOptions
public SourceOptions()
-
-
Method Details
-
clone
-
copyInto
Copy all options from thisSourceOptionsinstance into the instance provided.- Parameters:
other- the target of this copy operation.- Returns:
- this
SourceOptionsinstance.
-
distributionMode
- Returns:
- the distributionMode
-
distributionMode
- Parameters:
distributionMode- the distributionMode to set- Returns:
- this
SourceOptionsinstance.
-
filters
- Returns:
- the filters
-
filters
- Parameters:
filters- the filters to set- Returns:
- this
SourceOptionsinstance.
-
addFilter
Adds the given named filter into the map of filters (one will be created if not already set).If a previous filters
Mapwas 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 theDescribedTypethat will carry the filter.filter- The filter value to assign to the filterDescribedType.- Returns:
- this
SourceOptionsinstance.
-
defaultOutcome
- Returns:
- the configured default outcome as a
DeliveryStateinstance.
-
defaultOutcome
- Parameters:
defaultOutcome- The default outcome to assign to the created link source.- Returns:
- this
SourceOptionsinstance.
-
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
SourceOptionsinstance.
-