Class CoreMessageSender
- java.lang.Object
-
- com.microsoft.azure.servicebus.primitives.ClientEntity
-
- com.microsoft.azure.servicebus.primitives.CoreMessageSender
-
- All Implemented Interfaces:
IAmqpLink,IAmqpSender
public class CoreMessageSender extends ClientEntity implements IAmqpSender
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CompletableFuture<Void>cancelScheduledMessageAsync(Long[] sequenceNumbers, Duration timeout)static CompletableFuture<CoreMessageSender>create(MessagingFactory factory, String clientId, String senderPath, String transferDestinationPath)Deprecated.static CompletableFuture<CoreMessageSender>create(MessagingFactory factory, String clientId, String senderPath, String transferDestinationPath, MessagingEntityType entityType)com.microsoft.azure.servicebus.primitives.ErrorContextgetContext()StringgetSendPath()protected CompletableFuture<Void>onClose()voidonClose(org.apache.qpid.proton.amqp.transport.ErrorCondition condition)voidonError(Exception completionException)voidonFlow(int creditIssued)voidonOpenComplete(Exception completionException)voidonSendComplete(org.apache.qpid.proton.engine.Delivery delivery)CompletableFuture<Collection<org.apache.qpid.proton.message.Message>>peekMessagesAsync(long fromSequenceNumber, int messageCount)CompletableFuture<long[]>scheduleMessageAsync(org.apache.qpid.proton.message.Message[] messages, TransactionContext transaction, Duration timeout)CompletableFuture<Void>sendAsync(Iterable<org.apache.qpid.proton.message.Message> messages, TransactionContext transaction)CompletableFuture<Void>sendAsync(org.apache.qpid.proton.message.Message msg, TransactionContext transaction)-
Methods inherited from class com.microsoft.azure.servicebus.primitives.ClientEntity
close, closeAsync, finalize, getClientId, getIsClosed, getIsClosingOrClosed, setClosed, setClosing, throwIfClosed
-
-
-
-
Method Detail
-
create
@Deprecated public static CompletableFuture<CoreMessageSender> create(MessagingFactory factory, String clientId, String senderPath, String transferDestinationPath)
Deprecated.
-
create
public static CompletableFuture<CoreMessageSender> create(MessagingFactory factory, String clientId, String senderPath, String transferDestinationPath, MessagingEntityType entityType)
-
getSendPath
public String getSendPath()
-
sendAsync
public CompletableFuture<Void> sendAsync(Iterable<org.apache.qpid.proton.message.Message> messages, TransactionContext transaction)
-
sendAsync
public CompletableFuture<Void> sendAsync(org.apache.qpid.proton.message.Message msg, TransactionContext transaction)
-
onOpenComplete
public void onOpenComplete(Exception completionException)
- Specified by:
onOpenCompletein interfaceIAmqpLink- Parameters:
completionException- completionException=null if open is successful
-
onClose
public void onClose(org.apache.qpid.proton.amqp.transport.ErrorCondition condition)
-
onError
public void onError(Exception completionException)
-
onSendComplete
public void onSendComplete(org.apache.qpid.proton.engine.Delivery delivery)
- Specified by:
onSendCompletein interfaceIAmqpSender
-
getContext
public com.microsoft.azure.servicebus.primitives.ErrorContext getContext()
-
onFlow
public void onFlow(int creditIssued)
- Specified by:
onFlowin interfaceIAmqpSender
-
onClose
protected CompletableFuture<Void> onClose()
- Specified by:
onClosein classClientEntity
-
scheduleMessageAsync
public CompletableFuture<long[]> scheduleMessageAsync(org.apache.qpid.proton.message.Message[] messages, TransactionContext transaction, Duration timeout)
-
cancelScheduledMessageAsync
public CompletableFuture<Void> cancelScheduledMessageAsync(Long[] sequenceNumbers, Duration timeout)
-
peekMessagesAsync
public CompletableFuture<Collection<org.apache.qpid.proton.message.Message>> peekMessagesAsync(long fromSequenceNumber, int messageCount)
-
-