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