Migrate netconf-topology to new transport
[netconf.git] / netconf / callhome-protocol / src / main / java / org / opendaylight / netconf / callhome / protocol / CallHomeChannelActivator.java
index 0fad0a5b1be3a8fb4911d83f04759bac23a306de..434ec5b3f261ac1d86eff3a91114c5d377e64656 100644 (file)
@@ -7,8 +7,8 @@
  */
 package org.opendaylight.netconf.callhome.protocol;
 
-import io.netty.util.concurrent.Promise;
-import javax.annotation.Nonnull;
+import com.google.common.util.concurrent.ListenableFuture;
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.netconf.client.NetconfClientSession;
 import org.opendaylight.netconf.client.NetconfClientSessionListener;
 
@@ -24,8 +24,7 @@ public interface CallHomeChannelActivator {
      * session negotiation on underlying ssh channel.
      *
      * @param listener Client Session Listener to be attached to NETCONF session.
-     * @return Promise with negotiated NETCONF session
+     * @return Future with negotiated NETCONF session
      */
-    @Nonnull
-    Promise<NetconfClientSession> activate(@Nonnull NetconfClientSessionListener listener);
+    @NonNull ListenableFuture<NetconfClientSession> activate(@NonNull NetconfClientSessionListener listener);
 }