Class InflightActivateJobsRequest

java.lang.Object
io.camunda.zeebe.gateway.impl.job.InflightActivateJobsRequest

public class InflightActivateJobsRequest extends Object
  • Constructor Details

  • Method Details

    • complete

      public void complete()
    • isCompleted

      public boolean isCompleted()
    • tryToSendActivatedJobs

      public Either<Exception,Boolean> tryToSendActivatedJobs(GatewayOuterClass.ActivateJobsResponse activatedJobs)
      Sends activated jobs to the respective client.
      Parameters:
      activatedJobs - to send back to the client
      Returns:
      an instance of Either indicating the following:
      • == true: if the activated jobs have been sent back to the client
      • == false: if the activated jobs couldn't be sent back to the client
      • != null: if sending back the activated jobs failed with an exception (note: in this case == false)
    • onError

      public void onError(Throwable error)
    • timeout

      public void timeout()
    • isCanceled

      public boolean isCanceled()
    • getRequest

      public BrokerActivateJobsRequest getRequest()
    • getResponseObserver

    • getType

      public String getType()
    • getWorker

      public String getWorker()
    • getMaxJobsToActivate

      public int getMaxJobsToActivate()
    • setScheduledTimer

      public void setScheduledTimer(ScheduledTimer scheduledTimer)
    • hasScheduledTimer

      public boolean hasScheduledTimer()
    • isTimedOut

      public boolean isTimedOut()
    • getLongPollingTimeout

      public Duration getLongPollingTimeout(Duration defaultTimeout)
    • isLongPollingDisabled

      public boolean isLongPollingDisabled()
    • isAborted

      public boolean isAborted()
    • isOpen

      public boolean isOpen()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object