decodedMsg = new CloseRequest();
break; case CloseRequest.ID: decodedMsg = CloseRequest.readFrom(msg); break; case AddCredit.ID:
break; case CloseRequest.ID: decodedMsg = CloseRequest.readFrom(msg); break; case AddCredit.ID:
break; case CloseRequest.ID: decodedMsg = CloseRequest.readFrom(msg); break; case AddCredit.ID:
break; case NettyMessage.CloseRequest.ID: decodedMsg = NettyMessage.CloseRequest.readFrom(messageHeaderBuffer); break; case NettyMessage.AddCredit.ID:
public void close(RemoteInputChannel inputChannel) throws IOException { partitionRequestHandler.removeInputChannel(inputChannel); if (closeReferenceCounter.decrement()) { // Close the TCP connection. Send a close request msg to ensure // that outstanding backwards task events are not discarded. tcpChannel.writeAndFlush(new NettyMessage.CloseRequest()) .addListener(ChannelFutureListener.CLOSE_ON_FAILURE); // Make sure to remove the client from the factory clientFactory.destroyPartitionRequestClient(connectionId, this); } else { partitionRequestHandler.cancelRequestFor(inputChannel.getInputChannelId()); } }
public void close(RemoteInputChannel inputChannel) throws IOException { clientHandler.removeInputChannel(inputChannel); if (closeReferenceCounter.decrement()) { // Close the TCP connection. Send a close request msg to ensure // that outstanding backwards task events are not discarded. tcpChannel.writeAndFlush(new NettyMessage.CloseRequest()) .addListener(ChannelFutureListener.CLOSE_ON_FAILURE); // Make sure to remove the client from the factory clientFactory.destroyPartitionRequestClient(connectionId, this); } else { clientHandler.cancelRequestFor(inputChannel.getInputChannelId()); } }
static CloseRequest readFrom(@SuppressWarnings("unused") ByteBuf buffer) throws Exception { return new CloseRequest(); } }
static CloseRequest readFrom(@SuppressWarnings("unused") ByteBuf buffer) throws Exception { return new CloseRequest(); } }
public void close(RemoteInputChannel inputChannel) throws IOException { clientHandler.removeInputChannel(inputChannel); if (closeReferenceCounter.decrement()) { // Close the TCP connection. Send a close request msg to ensure // that outstanding backwards task events are not discarded. tcpChannel.writeAndFlush(new NettyMessage.CloseRequest()) .addListener(ChannelFutureListener.CLOSE_ON_FAILURE); // Make sure to remove the client from the factory clientFactory.destroyPartitionRequestClient(connectionId, this); } else { clientHandler.cancelRequestFor(inputChannel.getInputChannelId()); } }
public void close(RemoteInputChannel inputChannel) throws IOException { clientHandler.removeInputChannel(inputChannel); if (closeReferenceCounter.decrement()) { // Close the TCP connection. Send a close request msg to ensure // that outstanding backwards task events are not discarded. tcpChannel.writeAndFlush(new NettyMessage.CloseRequest()) .addListener(ChannelFutureListener.CLOSE_ON_FAILURE); // Make sure to remove the client from the factory clientFactory.destroyPartitionRequestClient(connectionId, this); } else { clientHandler.cancelRequestFor(inputChannel.getInputChannelId()); } }
static CloseRequest readFrom(@SuppressWarnings("unused") ByteBuf buffer) throws Exception { return new CloseRequest(); } }