private void flushPage(final @NotNull ByteBuffer bufferToSave,
                         final long offsetInFile) throws IOException {
    final long startedAtNs = pageCacheStatistics.startTimestampNs();
    final int bytesToStore = bufferToSave.remaining();
    executeIdempotentOp(ch -> {
      ch.write(bufferToSave, offsetInFile);
      return null;
    }, isReadOnly());

    pageCacheStatistics.pageWritten(bytesToStore, startedAtNs);
  }
private void flushPage(final @NotNull ByteBuffer bufferToSave,
                         final long offsetInFile)