@Override
  public ListenableFuture<Integer> write(final ByteBuffer src, final long position) {
    Util.checkNotNegative(position, "position");
    if (!isOpen()) {
      return closedChannelFuture();
    }
    channel.checkWritable();
    return executor.submit(
        new Callable<Integer>() {
          @Override
          public Integer call() throws IOException {
            return channel.write(src, position);
          }
        });
  }
{@link AsynchronousFileChannel} implementation that delegates to a {@link JimfsFileChannel}.

@author Colin Decker
jimfs/src/main/java/com/google/common/jimfs/JimfsAsynchronousFileChannel.java