Interface JobStreamer.JobStream

Enclosing interface:
JobStreamer

public static interface JobStreamer.JobStream
A JobStreamer.JobStream allows consumers to push out activated jobs.
  • Method Details

    • properties

      Returns the properties used during job activation, e.g. timeout, worker
    • push

      void push(ActivatedJob payload, JobStreamer.ErrorHandler errorHandler)
      Pushes the given payload to the stream. Implementations of this are likely asynchronous; it's recommended that callers ensure that the given payload is immutable, and that the error handler does not close over any shared state.
      Parameters:
      payload - the data to push to the remote gateway
      errorHandler - logic to execute if the data could not be pushed to the underlying stream