Package org.apache.qpid.protonj2.client
Class SourceOptions
- java.lang.Object
-
- org.apache.qpid.protonj2.client.TerminusOptions<SourceOptions>
-
- org.apache.qpid.protonj2.client.SourceOptions
-
public final class SourceOptions extends TerminusOptions<SourceOptions>
Options type that carries configuration for link Source types.
-
-
Field Summary
Fields Modifier and Type Field Description static ClientDeliveryState
DEFAULT_RECEIVER_OUTCOME
The default AMQP Outcome that will be specified for all newReceiver
instances.
-
Constructor Summary
Constructors Constructor Description SourceOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceOptions
clone()
SourceOptions
copyInto(SourceOptions other)
Copy all options from thisSourceOptions
instance into the instance provided.DeliveryState
defaultOutcome()
SourceOptions
defaultOutcome(DeliveryState defaultOutcome)
DistributionMode
distributionMode()
SourceOptions
distributionMode(DistributionMode distributionMode)
java.util.Map<java.lang.String,java.lang.String>
filters()
SourceOptions
filters(java.util.Map<java.lang.String,java.lang.String> filters)
DeliveryState.Type[]
outcomes()
SourceOptions
outcomes(DeliveryState.Type... outcomes)
-
Methods inherited from class org.apache.qpid.protonj2.client.TerminusOptions
capabilities, capabilities, copyInto, durabilityMode, durabilityMode, expiryPolicy, expiryPolicy, timeout, timeout
-
-
-
-
Field Detail
-
DEFAULT_RECEIVER_OUTCOME
public static final ClientDeliveryState DEFAULT_RECEIVER_OUTCOME
The default AMQP Outcome that will be specified for all newReceiver
instances.
-
-
Method Detail
-
clone
public SourceOptions clone()
- Overrides:
clone
in classjava.lang.Object
-
copyInto
public SourceOptions copyInto(SourceOptions other)
Copy all options from thisSourceOptions
instance into the instance provided.- Parameters:
other
- the target of this copy operation.- Returns:
- this
SourceOptions
instance.
-
distributionMode
public DistributionMode distributionMode()
- Returns:
- the distributionMode
-
distributionMode
public SourceOptions distributionMode(DistributionMode distributionMode)
- Parameters:
distributionMode
- the distributionMode to set- Returns:
- this
SourceOptions
instance.
-
filters
public java.util.Map<java.lang.String,java.lang.String> filters()
- Returns:
- the filters
-
filters
public SourceOptions filters(java.util.Map<java.lang.String,java.lang.String> filters)
- Parameters:
filters
- the filters to set- Returns:
- this
SourceOptions
instance.
-
defaultOutcome
public DeliveryState defaultOutcome()
- Returns:
- the configured default outcome as a
DeliveryState
instance.
-
defaultOutcome
public SourceOptions defaultOutcome(DeliveryState defaultOutcome)
- Parameters:
defaultOutcome
- The default outcome to assign to the created link source.- Returns:
- this
SourceOptions
instance.
-
outcomes
public DeliveryState.Type[] outcomes()
- Returns:
- the currently configured supported outcomes to be used on the create link.
-
outcomes
public SourceOptions outcomes(DeliveryState.Type... outcomes)
- Parameters:
outcomes
- The supported outcomes for the link createdSource
.- Returns:
- this
SourceOptions
instance.
-
-