HBASE-27271 Addendum use NettyFutureUtils
This commit is contained in:
parent
2dc26082be
commit
2ac5578730
@ -239,7 +239,7 @@ class NettyRpcConnection extends RpcConnection {
|
|||||||
p.addBefore(BufferCallBeforeInitHandler.NAME, readTimeoutHandlerName,
|
p.addBefore(BufferCallBeforeInitHandler.NAME, readTimeoutHandlerName,
|
||||||
new ReadTimeoutHandler(RpcClient.DEFAULT_SOCKET_TIMEOUT_READ, TimeUnit.MILLISECONDS))
|
new ReadTimeoutHandler(RpcClient.DEFAULT_SOCKET_TIMEOUT_READ, TimeUnit.MILLISECONDS))
|
||||||
.addBefore(BufferCallBeforeInitHandler.NAME, null, chHandler);
|
.addBefore(BufferCallBeforeInitHandler.NAME, null, chHandler);
|
||||||
connectionHeaderPromise.addListener(new FutureListener<Boolean>() {
|
NettyFutureUtils.addListener(connectionHeaderPromise, new FutureListener<Boolean>() {
|
||||||
@Override
|
@Override
|
||||||
public void operationComplete(Future<Boolean> future) throws Exception {
|
public void operationComplete(Future<Boolean> future) throws Exception {
|
||||||
if (future.isSuccess()) {
|
if (future.isSuccess()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user