client/src/main/java/io/hoplin/batch/BatchContext.java
/**
   * Enqueue new batch request
   *
   * @param taskSupplier
   * @param <T>
   */
Enqueue new batch request
@param taskSupplier
@param 
Enqueue new batch request @param taskSupplier @param
public <T> void enqueue(final Supplier<T> taskSupplier) {
    Objects.requireNonNull(taskSupplier, "Supplier can't be null");
    final T taskMessage = taskSupplier.get();
      if (taskMessage == null) {
          throw new NullPointerException("Task message can't be null");
      }
    taskCounter++;
    tasks.add(new BatchContextTask(taskMessage));
  }
public < T > void enqueue ( final Supplier < T > taskSupplier ) { Objects . requireNonNull ( taskSupplier , "Supplier can't be null" ) ; final T taskMessage = taskSupplier . get ( ) ; if ( taskMessage == null ) { throw new NullPointerException ( "Task message can't be null" ) ; } taskCounter ++ ; tasks . add ( new BatchContextTask ( taskMessage ) ) ; }
Enqueue new batch request
 @param taskSupplier
 @param <T>
Enqueue new batch request @param taskSupplier @param <T >