public final class MessagingFactory extends Object implements AmqpConnection, SessionProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
MessagingFactory.ReactorFactory |
| Modifier and Type | Field and Description |
|---|---|
static Duration |
DefaultOperationTimeout |
protected ScheduledExecutorService |
executor |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
close() |
void |
closeSync() |
static CompletableFuture<MessagingFactory> |
createFromConnectionString(String connectionString,
RetryPolicy retryPolicy,
ScheduledExecutorService executor) |
static CompletableFuture<MessagingFactory> |
createFromConnectionString(String connectionString,
RetryPolicy retryPolicy,
ScheduledExecutorService executor,
MessagingFactory.ReactorFactory reactorFactory) |
static CompletableFuture<MessagingFactory> |
createFromConnectionString(String connectionString,
ScheduledExecutorService executor) |
void |
deregisterForConnectionError(org.apache.qpid.proton.engine.Link link) |
com.microsoft.azure.eventhubs.impl.CBSChannel |
getCBSChannel() |
String |
getClientId() |
String |
getHostName()
Host name intended to be used on Amqp Connection Open frame
|
protected Exception |
getLastKnownError() |
com.microsoft.azure.eventhubs.impl.ManagementChannel |
getManagementChannel() |
Duration |
getOperationTimeout() |
ReactorDispatcher |
getReactorDispatcher() |
RetryPolicy |
getRetryPolicy() |
org.apache.qpid.proton.engine.Session |
getSession(String path,
Consumer<org.apache.qpid.proton.engine.Session> onRemoteSessionOpen,
BiConsumer<org.apache.qpid.proton.amqp.transport.ErrorCondition,Exception> onRemoteSessionOpenError) |
SharedAccessSignatureTokenProvider |
getTokenProvider() |
protected CompletableFuture<Void> |
onClose() |
void |
onConnectionError(org.apache.qpid.proton.amqp.transport.ErrorCondition error) |
void |
onOpenComplete(Exception exception) |
void |
registerForConnectionError(org.apache.qpid.proton.engine.Link link) |
void |
scheduleOnReactorThread(DispatchHandler handler) |
void |
scheduleOnReactorThread(int delay,
DispatchHandler handler) |
protected void |
setClosed() |
protected void |
throwIfClosed() |
public static final Duration DefaultOperationTimeout
protected final ScheduledExecutorService executor
public static CompletableFuture<MessagingFactory> createFromConnectionString(String connectionString, ScheduledExecutorService executor) throws IOException
IOExceptionpublic static CompletableFuture<MessagingFactory> createFromConnectionString(String connectionString, RetryPolicy retryPolicy, ScheduledExecutorService executor) throws IOException
IOExceptionpublic static CompletableFuture<MessagingFactory> createFromConnectionString(String connectionString, RetryPolicy retryPolicy, ScheduledExecutorService executor, MessagingFactory.ReactorFactory reactorFactory) throws IOException
IOExceptionpublic String getHostName()
AmqpConnectiongetHostName in interface AmqpConnectionpublic ReactorDispatcher getReactorDispatcher()
public SharedAccessSignatureTokenProvider getTokenProvider()
public com.microsoft.azure.eventhubs.impl.CBSChannel getCBSChannel()
public com.microsoft.azure.eventhubs.impl.ManagementChannel getManagementChannel()
public org.apache.qpid.proton.engine.Session getSession(String path, Consumer<org.apache.qpid.proton.engine.Session> onRemoteSessionOpen, BiConsumer<org.apache.qpid.proton.amqp.transport.ErrorCondition,Exception> onRemoteSessionOpenError)
getSession in interface SessionProviderpublic Duration getOperationTimeout()
public RetryPolicy getRetryPolicy()
public void onOpenComplete(Exception exception)
onOpenComplete in interface AmqpConnectionpublic void onConnectionError(org.apache.qpid.proton.amqp.transport.ErrorCondition error)
onConnectionError in interface AmqpConnectionprotected CompletableFuture<Void> onClose()
public void registerForConnectionError(org.apache.qpid.proton.engine.Link link)
registerForConnectionError in interface AmqpConnectionpublic void deregisterForConnectionError(org.apache.qpid.proton.engine.Link link)
deregisterForConnectionError in interface AmqpConnectionpublic void scheduleOnReactorThread(DispatchHandler handler) throws IOException, RejectedExecutionException
public void scheduleOnReactorThread(int delay,
DispatchHandler handler)
throws IOException,
RejectedExecutionException
public String getClientId()
protected final void setClosed()
public final CompletableFuture<Void> close()
public final void closeSync()
throws EventHubException
EventHubExceptionprotected final void throwIfClosed()
protected Exception getLastKnownError()
Copyright © 2019. All rights reserved.