@Override
  public void close() {
    if (channelOpen.compareAndSet(true, false)) {
      resolveAllRemainingChunks(new ClosedChannelException());
    }
  }
Closes the channel and resolves all pending chunks with a {@link ClosedChannelException}. Also queues a poison
so that {@link #getNextChunk()} starts returning {@code null}.
ambry-test-utils/src/main/java/com/github/ambry/router/ByteBufferAWC.java