com.microsoft.azure.eventhubs.impl.ManagementChannel Maven / Gradle / Ivy
/*
* Copyright (c) Microsoft. All rights reserved.
* Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
package com.microsoft.azure.eventhubs.impl;
import org.apache.qpid.proton.Proton;
import org.apache.qpid.proton.amqp.messaging.AmqpValue;
import org.apache.qpid.proton.amqp.messaging.ApplicationProperties;
import org.apache.qpid.proton.message.Message;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
final class ManagementChannel {
final FaultTolerantObject innerChannel;
final SessionProvider sessionProvider;
final AmqpConnection connectionEventDispatcher;
public ManagementChannel(final SessionProvider sessionProvider, final AmqpConnection connection,
final String linkName) {
this.sessionProvider = sessionProvider;
this.connectionEventDispatcher = connection;
RequestResponseCloser closer = new RequestResponseCloser();
this.innerChannel = new FaultTolerantObject<>(
new RequestResponseOpener(sessionProvider, "mgmt-session", "mgmt", ClientConstants.MANAGEMENT_ADDRESS, connection),
closer);
closer.setInnerChannel(this.innerChannel);
}
public CompletableFuture
© 2015 - 2025 Weber Informatics LLC | Privacy Policy