Interface JobQueueOperation<T>

Type Parameters:
T - success response object type

public interface JobQueueOperation<T>
Provides methods for configuring and executing a job submission.
  • Method Details

    • onSuccess

      JobQueueOperation<T> onSuccess(Consumer<T> successHandler)
      Optional: Specifies the code to execute upon successful job submission. The consumer receives the JobQueueResult containing the JobId.
      Parameters:
      successHandler - Consumer lambda to handle a successful queueing operation
      Returns:
      the current JobQueueOperation instance for method chaining
    • onError

      JobQueueOperation<T> onError(Consumer<JobOperationError> errorHandler)
      Optional: Specifies the code to execute if an error occurs during job submission. The consumer receives the JobOperationError detailing the failure. If no error handler is specified, an exception is thrown on error.
      Parameters:
      errorHandler - Consumer lambda to handle the JobOperationError
      Returns:
      the current JobQueueOperation instance for method chaining
    • execute

      void execute()
      Starts the job submission process. This method is typically the last in the fluid chain, triggering the operation and invoking the configured callbacks upon completion.