public class ServiceBusTemplate<T extends ServiceBusSenderFactory> extends Object implements SendOperation
Message asynchronously| Modifier and Type | Field and Description |
|---|---|
protected CheckpointConfig |
checkpointConfig |
protected ServiceBusClientConfig |
clientConfig |
protected ServiceBusMessageConverter |
messageConverter |
protected T |
senderFactory |
| Constructor and Description |
|---|
ServiceBusTemplate(T senderFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected ExecutorService |
buildHandlerExecutors(String threadPrefix) |
protected com.microsoft.azure.servicebus.MessageHandlerOptions |
buildHandlerOptions() |
protected com.microsoft.azure.servicebus.SessionHandlerOptions |
buildSessionHandlerOptions() |
CheckpointConfig |
getCheckpointConfig() |
ServiceBusMessageConverter |
getMessageConverter() |
<U> CompletableFuture<Void> |
sendAsync(String destination,
org.springframework.messaging.Message<U> message,
PartitionSupplier partitionSupplier) |
void |
setCheckpointConfig(CheckpointConfig checkpointConfig) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsendAsyncprotected final T extends ServiceBusSenderFactory senderFactory
protected ServiceBusClientConfig clientConfig
protected CheckpointConfig checkpointConfig
protected ServiceBusMessageConverter messageConverter
public ServiceBusTemplate(@NonNull
T senderFactory)
public <U> CompletableFuture<Void> sendAsync(String destination, @NonNull org.springframework.messaging.Message<U> message, PartitionSupplier partitionSupplier)
sendAsync in interface SendOperationpublic void setCheckpointConfig(CheckpointConfig checkpointConfig)
protected com.microsoft.azure.servicebus.MessageHandlerOptions buildHandlerOptions()
protected com.microsoft.azure.servicebus.SessionHandlerOptions buildSessionHandlerOptions()
protected ExecutorService buildHandlerExecutors(String threadPrefix)
public CheckpointConfig getCheckpointConfig()
public ServiceBusMessageConverter getMessageConverter()
Copyright © 2019 Microsoft. All rights reserved.