*/
package org.opendaylight.netconf.callhome.protocol;
-import io.netty.util.concurrent.Promise;
+import io.netty.util.concurrent.Future;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.netconf.client.NetconfClientSession;
import org.opendaylight.netconf.client.NetconfClientSessionListener;
* 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 Future<NetconfClientSession> activate(@NonNull NetconfClientSessionListener listener);
}
import com.google.common.base.MoreObjects;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
-import io.netty.util.concurrent.Promise;
+import io.netty.util.concurrent.Future;
import org.opendaylight.netconf.api.NetconfMessage;
import org.opendaylight.netconf.api.NetconfTerminationReason;
import org.opendaylight.netconf.callhome.protocol.CallHomeChannelActivator;
.build();
}
- Promise<NetconfClientSession> activateNetconfChannel(final NetconfClientSessionListener sessionListener) {
+ Future<NetconfClientSession> activateNetconfChannel(final NetconfClientSessionListener sessionListener) {
return activator.activate(wrap(sessionListener));
}