2 * Copyright (c) 2023 PANTHEON.tech s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.netconf.callhome.server;
10 import com.google.common.util.concurrent.SettableFuture;
11 import org.opendaylight.netconf.client.NetconfClientSession;
12 import org.opendaylight.netconf.client.NetconfClientSessionListener;
15 * Session Context for incoming Call-Home connections.
17 public interface CallHomeSessionContext {
20 * Returns unique identifier of a connected device.
27 * Returns {@link NetconfClientSessionListener} associated with Netconf session expected to be established
28 * through current connection.
30 * @return netconf session listener
32 NetconfClientSessionListener netconfSessionListener();
35 * Returns {@link SettableFuture} for {@link NetconfClientSessionListener} expected to be established
36 * through current connection.
38 * @return settable future for netconf session
40 SettableFuture<NetconfClientSession> settableFuture();
43 * Terminates current connection.