IMessageAndSessionPump Interface
public interface IMessageAndSessionPump
Represents the pump which is underneath the clients that handles message processing.
Method Summary
Method Details
abandon
public abstract void abandon(UUID lockToken)
Abandon Message with lock token. This will make the message available again for processing. Abandoning a message will increase the delivery count on the message
Parameters:
Throws:
abandon
public abstract void abandon(UUID lockToken, Map
Abandon 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
Parameters:
Throws:
abandon
public abstract void abandon(UUID lockToken, Map
Abandon 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
Parameters:
Throws:
abandon
public abstract void abandon(UUID lockToken, TransactionContext transaction)
Abandon Message with lock token. This will make the message available again for processing. Abandoning a message will increase the delivery count on the message
Parameters:
Throws:
abandonAsync
public abstract CompletableFuture
Asynchronously abandon Message with lock token. This will make the message available again for processing. Abandoning a message will increase the delivery count on the message.
Parameters:
Returns:
abandonAsync
public abstract CompletableFuture
Asynchronously abandon 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.
Parameters:
Returns:
abandonAsync
public abstract CompletableFuture
Asynchronously abandon 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.
Parameters:
Returns:
abandonAsync
public abstract CompletableFuture
Asynchronously abandon Message with lock token. This will make the message available again for processing. Abandoning a message will increase the delivery count on the message.
Parameters:
Returns:
complete
public abstract void complete(UUID lockToken)
Completes a Message using its lock token. This will delete the message from the service.
Parameters:
Throws:
complete
public abstract void complete(UUID lockToken, TransactionContext transaction)
Completes a Message using its lock token. This will delete the message from the service.
Parameters:
Throws:
completeAsync
public abstract CompletableFuture
Asynchronously completes a Message using its lock token. This will delete the message from the service.
Parameters:
Returns:
completeAsync
public abstract CompletableFuture
Asynchronously completes a Message using its lock token. This will delete the message from the service.
Parameters:
Returns:
deadLetter
public abstract void deadLetter(UUID lockToken)
Moves a Message to the deadletter sub-queue.
Parameters:
Throws:
deadLetter
public abstract void deadLetter(UUID lockToken, Map
Moves a Message to the deadletter sub-queue with modified message properties.
Parameters:
Throws:
deadLetter
public abstract void deadLetter(UUID lockToken, Map
Moves a Message to the deadletter sub-queue with modified message properties.
Parameters:
Throws:
deadLetter
public abstract void deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription)
Moves a Message to the deadletter sub-queue with deadletter reason and error description.
Parameters:
Throws:
deadLetter
public abstract void deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, Map
Moves a Message to the deadletter sub-queue with deadletter reason and error description and modified properties.
Parameters:
Throws:
deadLetter
public abstract void deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, Map
Moves a Message to the deadletter sub-queue with deadletter reason and error description and modified properties.
Parameters:
Throws:
deadLetter
public abstract void deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, TransactionContext transaction)
Moves a Message to the deadletter sub-queue with deadletter reason and error description.
Parameters:
Throws:
deadLetter
public abstract void deadLetter(UUID lockToken, TransactionContext transaction)
Moves a Message to the deadletter sub-queue.
Parameters:
Throws:
deadLetterAsync
public abstract CompletableFuture
Asynchronously moves a Message to the deadletter sub-queue with deadletter.
Parameters:
Returns:
deadLetterAsync
public abstract CompletableFuture
Asynchronously moves a Message to the deadletter sub-queue with modified properties.
Parameters:
Returns:
deadLetterAsync
public abstract CompletableFuture
Asynchronously moves a Message to the deadletter sub-queue with modified properties.
Parameters:
Returns:
deadLetterAsync
public abstract CompletableFuture
Asynchronously moves a Message to the deadletter sub-queue with deadletter reason and error description.
Parameters:
Returns:
deadLetterAsync
public abstract CompletableFuture
Asynchronously moves a Message to the deadletter sub-queue with deadletter reason and error description and modified properties.
Parameters:
Returns:
deadLetterAsync
public abstract CompletableFuture
Asynchronously moves a Message to the deadletter sub-queue with deadletter reason and error description and modified properties.
Parameters:
Returns:
deadLetterAsync
public abstract CompletableFuture
Asynchronously moves a Message to the deadletter sub-queue with deadletter reason and error description.
Parameters:
Returns:
deadLetterAsync
public abstract CompletableFuture
Asynchronously moves a Message to the deadletter sub-queue with deadletter.
Parameters:
Returns:
getPrefetchCount
public abstract int getPrefetchCount()
Get the prefetch value set.
Returns:
registerMessageHandler
@Deprecated
public abstract void registerMessageHandler(IMessageHandler handler)
Deprecated
Receive messages continuously from the entity. Registers a message handler and begins a new thread to receive messages. IMessageHandler methods are executed on java.util.concurrent.commonPool()
Parameters:
Throws:
registerMessageHandler
public abstract void registerMessageHandler(IMessageHandler handler, ExecutorService executorService)
Receive messages continuously from the entity. Registers a message handler and begins a new thread to receive messages. IMessageHandler methods are executed on the passed executor service.
Parameters:
Throws:
registerMessageHandler
@Deprecated
public abstract void registerMessageHandler(IMessageHandler handler, MessageHandlerOptions handlerOptions)
Receive messages continuously from the entity. Registers a message handler and begins a new thread to receive messages. IMessageHandler methods are executed on java.util.concurrent.commonPool()
Parameters:
Throws:
registerMessageHandler
public abstract void registerMessageHandler(IMessageHandler handler, MessageHandlerOptions handlerOptions, ExecutorService executorService)
Receive messages continuously from the entity. Registers a message handler and begins a new thread to receive messages. IMessageHandler methods are executed on the passed executor service.
Parameters:
Throws:
registerSessionHandler
@Deprecated
public abstract void registerSessionHandler(ISessionHandler handler)
Receive session messages continuously from the queue. Registers a message handler and begins a new thread to receive session-messages. ISessionHandler methods are executed on java.util.concurrent.commonPool()
Parameters:
Throws:
registerSessionHandler
public abstract void registerSessionHandler(ISessionHandler handler, ExecutorService executorService)
Receive session messages continuously from the queue. Registers a message handler and begins a new thread to receive session-messages. ISessionHandler methods are executed on the passed executor service.
Parameters:
Throws:
registerSessionHandler
@Deprecated
public abstract void registerSessionHandler(ISessionHandler handler, SessionHandlerOptions handlerOptions)
Receive session messages continuously from the queue. Registers a message handler and begins a new thread to receive session-messages. ISessionHandler methods are executed on java.util.concurrent.commonPool()
Parameters:
Throws:
registerSessionHandler
public abstract void registerSessionHandler(ISessionHandler handler, SessionHandlerOptions handlerOptions, ExecutorService executorService)
Receive session messages continuously from the queue. Registers a message handler and begins a new thread to receive session-messages. ISessionHandler methods are executed on the passed executor service.
Parameters:
Throws:
setPrefetchCount
public abstract void setPrefetchCount(int prefetchCount)
Set the prefetch count of the receiver. Prefetch speeds up the message flow by aiming to have a message readily available for local retrieval when and before the application asks for one using Receive. Setting a non-zero value prefetches PrefetchCount number of messages. Setting the value to zero turns prefetch off. For RECEIVEANDDELETE mode, the default value is 0. For PEEKLOCK mode, the default value is 100.
The value cannot be set until the receiver is created.
Parameters:
Throws:
Applies to
Azure SDK for Java