private void mayCancelTimer(boolean cancelTimer) {
    if (cancelTimer && scheduledFuture != null) {
      scheduledFuture.cancel(true);
    }
  }
@param operation The Put/Delete/Update operation to be added to the batch.
@return A {@link CompletableFuture} to indicate whether the operation is finished.
samza-core/src/main/java/org/apache/samza/table/batching/BatchProcessor.java