public class ReceiveAsyncOptions extends Object
ServiceBusReceiverAsyncClient
.Constructor and Description |
---|
ReceiveAsyncOptions() |
Modifier and Type | Method and Description |
---|---|
Duration |
getMaxAutoRenewDuration()
Gets the amount of time to continue auto-renewing the message lock.
|
boolean |
isEnableAutoComplete()
Gets whether the message should be automatically completed when consumers are finished processing the message.
|
ReceiveAsyncOptions |
setEnableAutoComplete(boolean enableAutoComplete)
Sets whether the message should be automatically completed when consumers are finished processing the message.
|
ReceiveAsyncOptions |
setMaxAutoRenewDuration(Duration maxAutoRenewDuration)
Sets the amount of time to continue auto-renewing the message lock.
|
public boolean isEnableAutoComplete()
true
to automatically complete the message; false
otherwise.public ReceiveAsyncOptions setEnableAutoComplete(boolean enableAutoComplete)
enableAutoComplete
- true
to automatically complete the message; false
otherwise.ReceiveAsyncOptions
object.public Duration getMaxAutoRenewDuration()
Duration.ZERO
or null
indicates that auto-renewal is disabled.public ReceiveAsyncOptions setMaxAutoRenewDuration(Duration maxAutoRenewDuration)
Duration.ZERO
or null
disables auto-renewal.maxAutoRenewDuration
- the amount of time to continue auto-renewing the message lock. Duration.ZERO
or null
indicates that auto-renewal is disabled.ReceiveAsyncOptions
object.Copyright © 2020 Microsoft Corporation. All rights reserved.