com.microsoft.azure.eventhubs.impl.ManagementChannel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-eventhubs Show documentation
Show all versions of azure-eventhubs Show documentation
Client library for talking to Microsoft Azure Event Hubs.
/*
* 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.io.IOException;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import com.microsoft.azure.eventhubs.OperationCancelledException;
import com.microsoft.azure.eventhubs.TimeoutException;
final class ManagementChannel {
final FaultTolerantObject innerChannel;
final SessionProvider sessionProvider;
final AmqpConnection connectionEventDispatcher;
public ManagementChannel(final SessionProvider sessionProvider, final AmqpConnection connection) {
this.sessionProvider = sessionProvider;
this.connectionEventDispatcher = connection;
final 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