public class ReceiveAsyncOptions extends Object
ServiceBusReceiverAsyncClient
.Constructor and Description |
---|
ReceiveAsyncOptions() |
Modifier and Type | Method and Description |
---|---|
Duration |
getMaxAutoLockRenewalDuration()
Gets the amount of time to continue auto-renewing the message lock.
|
boolean |
isAutoCompleteEnabled()
Gets whether the message should be automatically completed when consumers are finished processing the message.
|
ReceiveAsyncOptions |
setIsAutoCompleteEnabled(boolean isAutoCompleteEnabled)
Sets whether the message should be automatically completed when consumers are finished processing the message.
|
ReceiveAsyncOptions |
setMaxAutoLockRenewalDuration(Duration maxAutoLockRenewalDuration)
Sets the amount of time to continue auto-renewing the message lock.
|
public boolean isAutoCompleteEnabled()
true
to automatically complete the message; false
otherwise.public ReceiveAsyncOptions setIsAutoCompleteEnabled(boolean isAutoCompleteEnabled)
isAutoCompleteEnabled
- true
to automatically complete the message; false
otherwise.ReceiveAsyncOptions
object.public Duration getMaxAutoLockRenewalDuration()
Duration.ZERO
or null
indicates that auto-renewal is disabled.public ReceiveAsyncOptions setMaxAutoLockRenewalDuration(Duration maxAutoLockRenewalDuration)
Duration.ZERO
or null
disables auto-renewal.maxAutoLockRenewalDuration
- 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.