Improve ClientTransportChannelListener 38/110338/2
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 25 Feb 2024 10:31:27 +0000 (11:31 +0100)
committerRobert Varga <nite@hq.sk>
Sun, 25 Feb 2024 11:05:11 +0000 (11:05 +0000)
commite77f823bc23d00243eb68504d4b9e30254447dfe
tree0a61a7097553821ffeb4a10794afd65aeb5e0f3b
parent4dbeb7b2bca6f7c8297d4211560c6f581a505678
Improve ClientTransportChannelListener

Since we are completing the same future, there is no need to allocate
a new FutureListener and capture the promise.

Make ClientTransportChannelListener a FutureListener itself, and pick
the result from the future we get handed.

Change-Id: I14af7d49af8b02ea530c7c994968d2adf48083a0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
protocol/netconf-client/src/main/java/org/opendaylight/netconf/client/ClientTransportChannelListener.java