Package org.apache.qpid.protonj2.client
Class ReceiverOptions
java.lang.Object
org.apache.qpid.protonj2.client.LinkOptions<ReceiverOptions>
org.apache.qpid.protonj2.client.ReceiverOptions
- All Implemented Interfaces:
- Cloneable
Options that control the behavior of the 
Receiver created from them.- 
Constructor SummaryConstructorsConstructorDescriptionCreate a new ReceiverOptions instance with defaults set for all options.ReceiverOptions(ReceiverOptions options) Create a new ReceiverOptions instance that copies the configuration from the specified source options.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanautoAccept(boolean autoAccept) Controls if the created Receiver will automatically accept the deliveries that have been received by the application (default istrue).clone()protected ReceiverOptionscopyInto(ReceiverOptions other) Copy all options from thisReceiverOptionsinstance into the instance provided.intcreditWindow(int creditWindow) A credit window value that will be used to maintain an window of credit for Receiver instances that are created.longdrainTimeout(long drainTimeout) Sets the drain timeout (in milliseconds) after which aReceiverrequest to drain link credit is considered failed and the request will be marked as such.drainTimeout(long timeout, TimeUnit units) Sets the drain timeout value after which aReceiverrequest to drain link credit is considered failed and the request will be marked as such.protected ReceiverOptionsself()Methods inherited from class org.apache.qpid.protonj2.client.LinkOptionsautoSettle, autoSettle, closeTimeout, closeTimeout, closeTimeout, copyInto, deliveryMode, deliveryMode, desiredCapabilities, desiredCapabilities, linkName, linkName, offeredCapabilities, offeredCapabilities, openTimeout, openTimeout, openTimeout, properties, properties, requestTimeout, requestTimeout, requestTimeout, sourceOptions, targetOptions
- 
Constructor Details- 
ReceiverOptionspublic ReceiverOptions()Create a new ReceiverOptions instance with defaults set for all options.
- 
ReceiverOptionsCreate a new ReceiverOptions instance that copies the configuration from the specified source options.- Parameters:
- options- The ReceiverOptions instance whose settings are to be copied into this one.
 
 
- 
- 
Method Details- 
autoAcceptControls if the created Receiver will automatically accept the deliveries that have been received by the application (default istrue).- Parameters:
- autoAccept- The value to assign for auto delivery acceptance.
- Returns:
- this ReceiverOptionsinstance.
 
- 
autoAcceptpublic boolean autoAccept()- Returns:
- the current value of the Receiverauto accept setting.
 
- 
creditWindowpublic int creditWindow()- Returns:
- the credit window configuration that will be applied to created Receiverinstances.
 
- 
creditWindowA credit window value that will be used to maintain an window of credit for Receiver instances that are created. TheReceiverwill allow up to the credit window amount of incoming deliveries to be queued and as they are read from theReceiverthe window will be extended to maintain a consistent backlog of deliveries. The default is to configure a credit window of 10.To disable credit windowing and allow the client application to control the credit on the Receiverlink the credit window value should be set to zero.- Parameters:
- creditWindow- The assigned credit window value to use.
- Returns:
- this ReceiverOptionsinstance.
 
- 
drainTimeoutpublic long drainTimeout()- Returns:
- the configured drain timeout value that will use to fail a pending drain request.
 
- 
drainTimeoutSets the drain timeout (in milliseconds) after which aReceiverrequest to drain link credit is considered failed and the request will be marked as such.- Parameters:
- drainTimeout- the drainTimeout to use for receiver links.
- Returns:
- this ReceiverOptionsinstance.
 
- 
drainTimeoutSets the drain timeout value after which aReceiverrequest to drain link credit is considered failed and the request will be marked as such.- Parameters:
- timeout- Timeout value to wait for a remote response.
- units- The- TimeUnitthat defines the timeout span.
- Returns:
- this ReceiverOptionsinstance.
 
- 
clone
- 
copyIntoCopy all options from thisReceiverOptionsinstance into the instance provided.- Parameters:
- other- the target of this copy operation.
- Returns:
- the ReceiverOptionsinstance that was given.
 
- 
self- Specified by:
- selfin class- LinkOptions<ReceiverOptions>
- Returns:
- the true derived type instance for use in this class.
 
 
-