docs: private void applyOperations(long fromIndex, long toIndex) {
      for (long i = fromIndex + 1; i <= toIndex; i++) {
        BackupOperation operation = operations.poll();
        if (operation == null) {
          requestRestore(context.primary());
          break;
        }
  
        if (context.nextIndex(operation.index())) {
          switch (operation.type()) {
            case EXECUTE:
              applyExecute((ExecuteOperation) operation);
              break;
            case HEARTBEAT:
              applyHeartbeat((HeartbeatOperation) operation);
              break;
            case EXPIRE:
              applyExpire((ExpireOperation) operation);
              break;
            case CLOSE:
              applyClose((CloseOperation) operation);
              break;
          }
  
        } else if (operation.index() < i) {
          continue;
        } else {
          requestRestore(context.primary());
          break;
        }
      }
    }