public final class QueueClient extends ClientEntity implements IQueueClient
Constructor and Description |
---|
QueueClient(ConnectionStringBuilder amqpConnectionStringBuilder,
ReceiveMode receiveMode) |
QueueClient(String namespace,
String queuePath,
ClientSettings clientSettings,
ReceiveMode receiveMode) |
QueueClient(URI namespaceEndpointURI,
String queuePath,
ClientSettings clientSettings,
ReceiveMode receiveMode) |
Modifier and Type | Method and Description |
---|---|
void |
abandon(UUID lockToken)
Abandon
Message with lock token. |
void |
abandon(UUID lockToken,
Map<String,Object> propertiesToModify)
Abandon
Message with lock token and updated message property. |
void |
abandon(UUID lockToken,
Map<String,Object> propertiesToModify,
TransactionContext transaction)
Abandon
Message with lock token and updated message property. |
void |
abandon(UUID lockToken,
TransactionContext transaction)
Abandon
Message with lock token. |
CompletableFuture<Void> |
abandonAsync(UUID lockToken)
Asynchronously abandon
Message with lock token. |
CompletableFuture<Void> |
abandonAsync(UUID lockToken,
Map<String,Object> propertiesToModify)
Asynchronously abandon
Message with lock token and updated message property. |
CompletableFuture<Void> |
abandonAsync(UUID lockToken,
Map<String,Object> propertiesToModify,
TransactionContext transaction)
Asynchronously abandon
Message with lock token and updated message property. |
CompletableFuture<Void> |
abandonAsync(UUID lockToken,
TransactionContext transaction)
Asynchronously abandon
Message with lock token. |
void |
cancelScheduledMessage(long sequenceNumber)
Cancels the enqueuing of an already sent scheduled message, if it was not already enqueued.
|
CompletableFuture<Void> |
cancelScheduledMessageAsync(long sequenceNumber)
Cancels the enqueuing of an already sent scheduled message, if it was not already enqueued.
|
void |
complete(UUID lockToken)
Completes a
Message using its lock token. |
void |
complete(UUID lockToken,
TransactionContext transaction)
Completes a
Message using its lock token. |
CompletableFuture<Void> |
completeAsync(UUID lockToken)
Asynchronously completes a
Message using its lock token. |
CompletableFuture<Void> |
completeAsync(UUID lockToken,
TransactionContext transaction)
Asynchronously completes a
Message using its lock token. |
void |
deadLetter(UUID lockToken)
Moves a
Message to the deadletter sub-queue. |
void |
deadLetter(UUID lockToken,
Map<String,Object> propertiesToModify)
Moves a
Message to the deadletter sub-queue with modified message properties. |
void |
deadLetter(UUID lockToken,
Map<String,Object> propertiesToModify,
TransactionContext transaction)
Moves a
Message to the deadletter sub-queue with modified message properties. |
void |
deadLetter(UUID lockToken,
String deadLetterReason,
String deadLetterErrorDescription)
Moves a
Message to the deadletter sub-queue with deadletter reason and error description. |
void |
deadLetter(UUID lockToken,
String deadLetterReason,
String deadLetterErrorDescription,
Map<String,Object> propertiesToModify)
Moves a
Message to the deadletter sub-queue with deadletter reason and error description and modified properties. |
void |
deadLetter(UUID lockToken,
String deadLetterReason,
String deadLetterErrorDescription,
Map<String,Object> propertiesToModify,
TransactionContext transaction)
Moves a
Message to the deadletter sub-queue with deadletter reason and error description and modified properties. |
void |
deadLetter(UUID lockToken,
String deadLetterReason,
String deadLetterErrorDescription,
TransactionContext transaction)
Moves a
Message to the deadletter sub-queue with deadletter reason and error description. |
void |
deadLetter(UUID lockToken,
TransactionContext transaction)
Moves a
Message to the deadletter sub-queue. |
CompletableFuture<Void> |
deadLetterAsync(UUID lockToken)
Asynchronously moves a
Message to the deadletter sub-queue with deadletter. |
CompletableFuture<Void> |
deadLetterAsync(UUID lockToken,
Map<String,Object> propertiesToModify)
Asynchronously moves a
Message to the deadletter sub-queue with modified properties. |
CompletableFuture<Void> |
deadLetterAsync(UUID lockToken,
Map<String,Object> propertiesToModify,
TransactionContext transaction)
Asynchronously moves a
Message to the deadletter sub-queue with modified properties. |
CompletableFuture<Void> |
deadLetterAsync(UUID lockToken,
String deadLetterReason,
String deadLetterErrorDescription)
Asynchronously moves a
Message to the deadletter sub-queue with deadletter reason and error description. |
CompletableFuture<Void> |
deadLetterAsync(UUID lockToken,
String deadLetterReason,
String deadLetterErrorDescription,
Map<String,Object> propertiesToModify)
Asynchronously moves a
Message to the deadletter sub-queue with deadletter reason and error description and modified properties. |
CompletableFuture<Void> |
deadLetterAsync(UUID lockToken,
String deadLetterReason,
String deadLetterErrorDescription,
Map<String,Object> propertiesToModify,
TransactionContext transaction)
Asynchronously moves a
Message to the deadletter sub-queue with deadletter reason and error description and modified properties. |
CompletableFuture<Void> |
deadLetterAsync(UUID lockToken,
String deadLetterReason,
String deadLetterErrorDescription,
TransactionContext transaction)
Asynchronously moves a
Message to the deadletter sub-queue with deadletter reason and error description. |
CompletableFuture<Void> |
deadLetterAsync(UUID lockToken,
TransactionContext transaction)
Asynchronously moves a
Message to the deadletter sub-queue with deadletter. |
String |
getEntityPath()
Gets the path of the entity this client is sending messages to or receiving messages from.
|
int |
getPrefetchCount()
Get the prefetch value set.
|
String |
getQueueName()
Gets the name of the queue.
|
ReceiveMode |
getReceiveMode()
Gets the
ReceiveMode of the current receiver |
protected CompletableFuture<Void> |
onClose() |
void |
registerMessageHandler(IMessageHandler handler)
Deprecated.
|
void |
registerMessageHandler(IMessageHandler handler,
ExecutorService executorService)
Receive messages continuously from the entity.
|
void |
registerMessageHandler(IMessageHandler handler,
MessageHandlerOptions handlerOptions)
Deprecated.
|
void |
registerMessageHandler(IMessageHandler handler,
MessageHandlerOptions handlerOptions,
ExecutorService executorService)
Receive messages continuously from the entity.
|
void |
registerSessionHandler(ISessionHandler handler)
Deprecated.
|
void |
registerSessionHandler(ISessionHandler handler,
ExecutorService executorService)
Receive session messages continuously from the queue.
|
void |
registerSessionHandler(ISessionHandler handler,
SessionHandlerOptions handlerOptions)
Deprecated.
|
void |
registerSessionHandler(ISessionHandler handler,
SessionHandlerOptions handlerOptions,
ExecutorService executorService)
Receive session messages continuously from the queue.
|
long |
scheduleMessage(IMessage message,
Instant scheduledEnqueueTimeUtc)
Sends a scheduled message to the Azure Service Bus entity this sender is connected to.
|
long |
scheduleMessage(IMessage message,
Instant scheduledEnqueueTimeUtc,
TransactionContext transaction)
Sends a scheduled message to the Azure Service Bus entity this sender is connected to.
|
CompletableFuture<Long> |
scheduleMessageAsync(IMessage message,
Instant scheduledEnqueueTimeUtc)
Sends a scheduled message to the Azure Service Bus entity this sender is connected to.
|
CompletableFuture<Long> |
scheduleMessageAsync(IMessage message,
Instant scheduledEnqueueTimeUtc,
TransactionContext transaction)
Sends a scheduled message to the Azure Service Bus entity this sender is connected to.
|
void |
send(IMessage message)
Sends a message to the Azure Service Bus entity this sender is connected to.
|
void |
send(IMessage message,
TransactionContext transaction)
Sends a message to the Azure Service Bus entity this sender is connected to.
|
CompletableFuture<Void> |
sendAsync(IMessage message)
Sends a message to the Azure Service Bus entity this sender is connected to.
|
CompletableFuture<Void> |
sendAsync(IMessage message,
TransactionContext transaction)
Sends a message to the Azure Service Bus entity this sender is connected to.
|
void |
sendBatch(Collection<? extends IMessage> messages)
Sends a batch of messages to the Azure Service Bus entity this sender is connected to.
|
void |
sendBatch(Collection<? extends IMessage> messages,
TransactionContext transaction)
Sends a batch of messages to the Azure Service Bus entity this sender is connected to.
|
CompletableFuture<Void> |
sendBatchAsync(Collection<? extends IMessage> messages)
Sends a batch of messages to the Azure Service Bus entity this sender is connected to.
|
CompletableFuture<Void> |
sendBatchAsync(Collection<? extends IMessage> messages,
TransactionContext transaction)
Sends a batch of messages to the Azure Service Bus entity this sender is connected to.
|
void |
setPrefetchCount(int prefetchCount)
Set the prefetch count of the receiver.
|
close, closeAsync, finalize, getClientId, getIsClosed, getIsClosingOrClosed, setClosed, setClosing, throwIfClosed
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, closeAsync
public QueueClient(ConnectionStringBuilder amqpConnectionStringBuilder, ReceiveMode receiveMode) throws InterruptedException, ServiceBusException
public QueueClient(String namespace, String queuePath, ClientSettings clientSettings, ReceiveMode receiveMode) throws InterruptedException, ServiceBusException
public QueueClient(URI namespaceEndpointURI, String queuePath, ClientSettings clientSettings, ReceiveMode receiveMode) throws InterruptedException, ServiceBusException
public ReceiveMode getReceiveMode()
IQueueClient
ReceiveMode
of the current receivergetReceiveMode
in interface IQueueClient
public void send(IMessage message) throws InterruptedException, ServiceBusException
IMessageSender
sendAsync(message).get()
. For better performance, use async methods.send
in interface IMessageSender
message
- message to be sent to the entityInterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if message couldn't be sent to the entitypublic void send(IMessage message, TransactionContext transaction) throws InterruptedException, ServiceBusException
IMessageSender
sendAsync(message).get()
. For better performance, use async methods.send
in interface IMessageSender
message
- message to be sent to the entitytransaction
- TransactionContext
which this operation should enlist to.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if message couldn't be sent to the entitypublic void sendBatch(Collection<? extends IMessage> messages) throws InterruptedException, ServiceBusException
IMessageSender
sendBatchAsync(messages).get()
. For better performance, use async methods.sendBatch
in interface IMessageSender
messages
- collection of messages to be sent to the entityInterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if the batch couldn't be sent to the entitypublic void sendBatch(Collection<? extends IMessage> messages, TransactionContext transaction) throws InterruptedException, ServiceBusException
IMessageSender
sendBatchAsync(messages).get()
. For better performance, use async methods.sendBatch
in interface IMessageSender
messages
- collection of messages to be sent to the entitytransaction
- TransactionContext
which this operation should enlist to.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if the batch couldn't be sent to the entitypublic CompletableFuture<Void> sendAsync(IMessage message)
IMessageSender
sendAsync
in interface IMessageSender
message
- message to be sent to the entitypublic CompletableFuture<Void> sendAsync(IMessage message, TransactionContext transaction)
IMessageSender
sendAsync
in interface IMessageSender
message
- message to be sent to the entitytransaction
- TransactionContext
which this operation should enlist to.public CompletableFuture<Void> sendBatchAsync(Collection<? extends IMessage> messages)
IMessageSender
sendBatchAsync
in interface IMessageSender
messages
- collection of messages to be sent to the entitypublic CompletableFuture<Void> sendBatchAsync(Collection<? extends IMessage> messages, TransactionContext transaction)
IMessageSender
sendBatchAsync
in interface IMessageSender
messages
- collection of messages to be sent to the entitytransaction
- TransactionContext
which this operation should enlist to.public CompletableFuture<Long> scheduleMessageAsync(IMessage message, Instant scheduledEnqueueTimeUtc)
IMessageSender
scheduleMessageAsync
in interface IMessageSender
message
- message to be sent to the entityscheduledEnqueueTimeUtc
- instant at which the message should be enqueued in the entitypublic CompletableFuture<Long> scheduleMessageAsync(IMessage message, Instant scheduledEnqueueTimeUtc, TransactionContext transaction)
IMessageSender
scheduleMessageAsync
in interface IMessageSender
message
- message to be sent to the entityscheduledEnqueueTimeUtc
- instant at which the message should be enqueued in the entitytransaction
- TransactionContext
which this operation should enlist to.public CompletableFuture<Void> cancelScheduledMessageAsync(long sequenceNumber)
IMessageSender
cancelScheduledMessageAsync
in interface IMessageSender
sequenceNumber
- sequence number of the scheduled messagepublic long scheduleMessage(IMessage message, Instant scheduledEnqueueTimeUtc) throws InterruptedException, ServiceBusException
IMessageSender
scheduleMessageAsync(message, scheduledEnqueueTimeUtc).get()
. For better performance, use async methods.scheduleMessage
in interface IMessageSender
message
- message to be sent to the entityscheduledEnqueueTimeUtc
- instant at which the message should be enqueued in the entityInterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if message couldn't be sent to the entitypublic long scheduleMessage(IMessage message, Instant scheduledEnqueueTimeUtc, TransactionContext transaction) throws InterruptedException, ServiceBusException
IMessageSender
scheduleMessageAsync(message, scheduledEnqueueTimeUtc).get()
. For better performance, use async methods.scheduleMessage
in interface IMessageSender
message
- message to be sent to the entityscheduledEnqueueTimeUtc
- instant at which the message should be enqueued in the entitytransaction
- TransactionContext
which this operation should enlist to.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if message couldn't be sent to the entitypublic void cancelScheduledMessage(long sequenceNumber) throws InterruptedException, ServiceBusException
IMessageSender
cancelScheduledMessageAsync(sequenceNumber).get()
.
For better performance, use async methods.cancelScheduledMessage
in interface IMessageSender
sequenceNumber
- sequence number of the scheduled messageInterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if scheduled message couldn't be cancelledpublic String getEntityPath()
IMessageEntityClient
getEntityPath
in interface IMessageEntityClient
@Deprecated public void registerMessageHandler(IMessageHandler handler) throws InterruptedException, ServiceBusException
handler
- The IMessageHandler
instanceInterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if register failed@Deprecated public void registerMessageHandler(IMessageHandler handler, MessageHandlerOptions handlerOptions) throws InterruptedException, ServiceBusException
handler
- The IMessageHandler
instancehandlerOptions
- MessageHandlerOptions
InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if register failed@Deprecated public void registerSessionHandler(ISessionHandler handler) throws InterruptedException, ServiceBusException
handler
- The ISessionHandler
instanceInterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if register failed@Deprecated public void registerSessionHandler(ISessionHandler handler, SessionHandlerOptions handlerOptions) throws InterruptedException, ServiceBusException
handler
- The ISessionHandler
instancehandlerOptions
- SessionHandlerOptions
InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if register failedpublic void registerMessageHandler(IMessageHandler handler, ExecutorService executorService) throws InterruptedException, ServiceBusException
handler
- The IMessageHandler
instanceexecutorService
- ExecutorService which is used to execute IMessageHandler
methods.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if register failedpublic void registerMessageHandler(IMessageHandler handler, MessageHandlerOptions handlerOptions, ExecutorService executorService) throws InterruptedException, ServiceBusException
handler
- The IMessageHandler
instancehandlerOptions
- MessageHandlerOptions
executorService
- ExecutorService which is used to execute IMessageHandler
methodsInterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if register failedpublic void registerSessionHandler(ISessionHandler handler, ExecutorService executorService) throws InterruptedException, ServiceBusException
handler
- The ISessionHandler
instanceexecutorService
- ExecutorService which is used to execute ISessionHandler
methodsInterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if register failedpublic void registerSessionHandler(ISessionHandler handler, SessionHandlerOptions handlerOptions, ExecutorService executorService) throws InterruptedException, ServiceBusException
handler
- The ISessionHandler
instancehandlerOptions
- SessionHandlerOptions
executorService
- ExecutorService which is used to execute ISessionHandler
methodsInterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if register failedprotected CompletableFuture<Void> onClose()
onClose
in class ClientEntity
public void abandon(UUID lockToken) throws InterruptedException, ServiceBusException
Message
with lock token. This will make the message available again for processing. Abandoning a message will increase the delivery count on the messagelockToken
- Message lock token Message.getLockToken()
InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if abandon failedpublic void abandon(UUID lockToken, TransactionContext transaction) throws InterruptedException, ServiceBusException
Message
with lock token. This will make the message available again for processing. Abandoning a message will increase the delivery count on the messagelockToken
- Message lock token Message.getLockToken()
transaction
- TransactionContext
which this operation should enlist to.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if abandon failedpublic void abandon(UUID lockToken, Map<String,Object> propertiesToModify) throws InterruptedException, ServiceBusException
Message
with lock token and updated message property. This will make the message available again for processing. Abandoning a message will increase the delivery count on the messagelockToken
- Message lock token Message.getLockToken()
propertiesToModify
- Message properties to modify.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if abandon failedpublic void abandon(UUID lockToken, Map<String,Object> propertiesToModify, TransactionContext transaction) throws InterruptedException, ServiceBusException
Message
with lock token and updated message property. This will make the message available again for processing. Abandoning a message will increase the delivery count on the messagelockToken
- Message lock token Message.getLockToken()
propertiesToModify
- Message properties to modify.transaction
- TransactionContext
which this operation should enlist to.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if abandon failedpublic CompletableFuture<Void> abandonAsync(UUID lockToken)
Message
with lock token. This will make the message available again for processing. Abandoning a message will increase the delivery count on the message.lockToken
- Message lock token Message.getLockToken()
public CompletableFuture<Void> abandonAsync(UUID lockToken, TransactionContext transaction)
Message
with lock token. This will make the message available again for processing. Abandoning a message will increase the delivery count on the message.lockToken
- Message lock token Message.getLockToken()
transaction
- TransactionContext
which this operation should enlist to.public CompletableFuture<Void> abandonAsync(UUID lockToken, Map<String,Object> propertiesToModify)
Message
with lock token and updated message property. This will make the message available again for processing. Abandoning a message will increase the delivery count on the message.lockToken
- Message lock token Message.getLockToken()
propertiesToModify
- Message properties to modify.public CompletableFuture<Void> abandonAsync(UUID lockToken, Map<String,Object> propertiesToModify, TransactionContext transaction)
Message
with lock token and updated message property. This will make the message available again for processing. Abandoning a message will increase the delivery count on the message.lockToken
- Message lock token Message.getLockToken()
propertiesToModify
- Message properties to modify.transaction
- TransactionContext
which this operation should enlist to.public void complete(UUID lockToken) throws InterruptedException, ServiceBusException
Message
using its lock token. This will delete the message from the service.lockToken
- Message lock token Message.getLockToken()
InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if abandon failedpublic void complete(UUID lockToken, TransactionContext transaction) throws InterruptedException, ServiceBusException
Message
using its lock token. This will delete the message from the service.lockToken
- Message lock token Message.getLockToken()
transaction
- TransactionContext
which this operation should enlist to.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if abandon failedpublic CompletableFuture<Void> completeAsync(UUID lockToken)
Message
using its lock token. This will delete the message from the service.lockToken
- Message lock token Message.getLockToken()
public CompletableFuture<Void> completeAsync(UUID lockToken, TransactionContext transaction)
Message
using its lock token. This will delete the message from the service.lockToken
- Message lock token Message.getLockToken()
transaction
- TransactionContext
which this operation should enlist to.public void deadLetter(UUID lockToken) throws InterruptedException, ServiceBusException
Message
to the deadletter sub-queue.lockToken
- Message lock token Message.getLockToken()
InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if deadletter failedpublic void deadLetter(UUID lockToken, TransactionContext transaction) throws InterruptedException, ServiceBusException
Message
to the deadletter sub-queue.lockToken
- Message lock token Message.getLockToken()
transaction
- TransactionContext
which this operation should enlist to.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if deadletter failedpublic void deadLetter(UUID lockToken, Map<String,Object> propertiesToModify) throws InterruptedException, ServiceBusException
Message
to the deadletter sub-queue with modified message properties.lockToken
- Message lock token Message.getLockToken()
propertiesToModify
- Message properties to modify.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if deadletter failedpublic void deadLetter(UUID lockToken, Map<String,Object> propertiesToModify, TransactionContext transaction) throws InterruptedException, ServiceBusException
Message
to the deadletter sub-queue with modified message properties.lockToken
- Message lock token Message.getLockToken()
propertiesToModify
- Message properties to modify.transaction
- TransactionContext
which this operation should enlist to.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if deadletter failedpublic void deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription) throws InterruptedException, ServiceBusException
Message
to the deadletter sub-queue with deadletter reason and error description.lockToken
- Message lock token Message.getLockToken()
deadLetterReason
- The deadletter reason.deadLetterErrorDescription
- The deadletter error description.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if deadletter failedpublic void deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, TransactionContext transaction) throws InterruptedException, ServiceBusException
Message
to the deadletter sub-queue with deadletter reason and error description.lockToken
- Message lock token Message.getLockToken()
deadLetterReason
- The deadletter reason.deadLetterErrorDescription
- The deadletter error description.transaction
- TransactionContext
which this operation should enlist to.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if deadletter failedpublic void deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, Map<String,Object> propertiesToModify) throws InterruptedException, ServiceBusException
Message
to the deadletter sub-queue with deadletter reason and error description and modified properties.lockToken
- Message lock token Message.getLockToken()
deadLetterReason
- The deadletter reason.deadLetterErrorDescription
- The deadletter error description.propertiesToModify
- Message properties to modify.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if deadletter failedpublic void deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, Map<String,Object> propertiesToModify, TransactionContext transaction) throws InterruptedException, ServiceBusException
Message
to the deadletter sub-queue with deadletter reason and error description and modified properties.lockToken
- Message lock token Message.getLockToken()
deadLetterReason
- The deadletter reason.deadLetterErrorDescription
- The deadletter error description.propertiesToModify
- Message properties to modify.transaction
- TransactionContext
which this operation should enlist to.InterruptedException
- if the current thread was interrupted while waitingServiceBusException
- if deadletter failedpublic CompletableFuture<Void> deadLetterAsync(UUID lockToken)
Message
to the deadletter sub-queue with deadletter.lockToken
- Message lock token Message.getLockToken()
public CompletableFuture<Void> deadLetterAsync(UUID lockToken, TransactionContext transaction)
Message
to the deadletter sub-queue with deadletter.lockToken
- Message lock token Message.getLockToken()
transaction
- TransactionContext
which this operation should enlist to.public CompletableFuture<Void> deadLetterAsync(UUID lockToken, Map<String,Object> propertiesToModify)
Message
to the deadletter sub-queue with modified properties.lockToken
- Message lock token Message.getLockToken()
propertiesToModify
- Message properties to modify.public CompletableFuture<Void> deadLetterAsync(UUID lockToken, Map<String,Object> propertiesToModify, TransactionContext transaction)
Message
to the deadletter sub-queue with modified properties.lockToken
- Message lock token Message.getLockToken()
propertiesToModify
- Message properties to modify.transaction
- TransactionContext
which this operation should enlist to.public CompletableFuture<Void> deadLetterAsync(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription)
Message
to the deadletter sub-queue with deadletter reason and error description.lockToken
- Message lock token Message.getLockToken()
deadLetterReason
- The deadletter reason.deadLetterErrorDescription
- The deadletter error description.public CompletableFuture<Void> deadLetterAsync(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, TransactionContext transaction)
Message
to the deadletter sub-queue with deadletter reason and error description.lockToken
- Message lock token Message.getLockToken()
deadLetterReason
- The deadletter reason.deadLetterErrorDescription
- The deadletter error description.transaction
- TransactionContext
which this operation should enlist to.public CompletableFuture<Void> deadLetterAsync(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, Map<String,Object> propertiesToModify)
Message
to the deadletter sub-queue with deadletter reason and error description and modified properties.lockToken
- Message lock token Message.getLockToken()
deadLetterReason
- The deadletter reason.deadLetterErrorDescription
- The deadletter error description.propertiesToModify
- Message properties to modify.public CompletableFuture<Void> deadLetterAsync(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, Map<String,Object> propertiesToModify, TransactionContext transaction)
Message
to the deadletter sub-queue with deadletter reason and error description and modified properties.lockToken
- Message lock token Message.getLockToken()
deadLetterReason
- The deadletter reason.deadLetterErrorDescription
- The deadletter error description.propertiesToModify
- Message properties to modify.transaction
- TransactionContext
which this operation should enlist to.public int getPrefetchCount()
public void setPrefetchCount(int prefetchCount) throws ServiceBusException
The value cannot be set until the receiver is created.
prefetchCount
- The desired prefetch count.ServiceBusException
- if sets the value failedpublic String getQueueName()
IQueueClient
getQueueName
in interface IQueueClient
Copyright © 2019 Microsoft Corporation. All rights reserved.