public class MessagingFactory extends ClientEntity implements IAmqpConnection, ISessionProvider
| Modifier and Type | Field and Description |
|---|---|
static Duration |
DefaultOperationTimeout |
close, closeSync, getClientId, getLastKnownError, setClosed, throwIfClosedpublic static final Duration DefaultOperationTimeout
public String getHostName()
public ReactorDispatcher getReactorScheduler()
public SharedAccessSignatureTokenProvider getTokenProvider()
public CBSChannel getCBSChannel()
public 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 ISessionProviderpublic Duration getOperationTimeout()
public RetryPolicy getRetryPolicy()
public static CompletableFuture<MessagingFactory> createFromConnectionString(String connectionString) throws IOException
IOExceptionpublic static CompletableFuture<MessagingFactory> createFromConnectionString(String connectionString, RetryPolicy retryPolicy) throws IOException
IOExceptionpublic void onOpenComplete(Exception exception)
onOpenComplete in interface IAmqpConnectionpublic void onConnectionError(org.apache.qpid.proton.amqp.transport.ErrorCondition error)
onConnectionError in interface IAmqpConnectionprotected CompletableFuture<Void> onClose()
onClose in class ClientEntitypublic void registerForConnectionError(org.apache.qpid.proton.engine.Link link)
registerForConnectionError in interface IAmqpConnectionpublic void deregisterForConnectionError(org.apache.qpid.proton.engine.Link link)
deregisterForConnectionError in interface IAmqpConnectionpublic void scheduleOnReactorThread(DispatchHandler handler) throws IOException
IOExceptionpublic void scheduleOnReactorThread(int delay,
DispatchHandler handler)
throws IOException
IOExceptionCopyright © 2017. All rights reserved.