private SocketChannel channel(SelectionKey key) {
    return (SocketChannel) key.channel();
  }
Get the socket channel associated with this selection key
ambry-network/src/main/java/com/github/ambry/network/Selector.java