forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes issues in auto-* operations (#9860)
* Adding ReceiveAsyncOptions * Pulling in autocomplete and lock renewal. * Extract isAutoComplete and maxAutoRenewDuration into class. * Change UUID to all String.
- Loading branch information
Showing
19 changed files
with
704 additions
and
456 deletions.
There are no files selected for viewing
74 changes: 0 additions & 74 deletions
74
...saging-servicebus/src/main/java/com/azure/messaging/servicebus/ReceiveMessageOptions.java
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
...re-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ReceiverOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.messaging.servicebus; | ||
|
||
import com.azure.messaging.servicebus.models.ReceiveMode; | ||
|
||
/** | ||
* Options set when creating a service bus receiver. | ||
*/ | ||
class ReceiverOptions { | ||
private final ReceiveMode receiveMode; | ||
private final int prefetchCount; | ||
|
||
ReceiverOptions(ReceiveMode receiveMode, int prefetchCount) { | ||
this.receiveMode = receiveMode; | ||
this.prefetchCount = prefetchCount; | ||
} | ||
|
||
/** | ||
* Gets the receive mode for the message. | ||
* | ||
* @return the receive mode for the message. | ||
*/ | ||
ReceiveMode getReceiveMode() { | ||
return receiveMode; | ||
} | ||
|
||
/** | ||
* Gets the prefetch count of the receiver. | ||
* | ||
* @return The prefetch count of the receiver. | ||
*/ | ||
int getPrefetchCount() { | ||
return prefetchCount; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.