private Transmission getTransmission(SelectionKey key) {
    return (Transmission) key.attachment();
  }
Get the Transmission for the given connection
ambry-network/src/main/java/com/github/ambry/network/Selector.java