Class ScheduledJobRef

java.lang.Object
com.broadleafcommerce.common.messaging.domain.ScheduledJobRef

public class ScheduledJobRef extends Object
A reference to a ScheduledJob of the scheduled job microservice.
Author:
Chad Harchar (charchar)
  • Constructor Details

  • Method Details

    • getType

      public String getType()
    • getDetails

      public List<ScheduledJobDetailRef> getDetails()
    • getTenantId

      public String getTenantId()
      The ID of the associated tenant.
      Returns:
      ID of the associated tenant
    • getLastExecuted

      public Instant getLastExecuted()
      The date on which the job last executed.
      Returns:
      The date on which the job last executed.
    • getJobId

      public String getJobId()
      The Context ID of the scheduled job
    • isTrackExecutionDetails

      public boolean isTrackExecutionDetails()
      A flag to indicate whether the execution details of this scheduled-job should be tracked
    • getLastExecutionDetail

      public ScheduledJobExecutionDetailRef getLastExecutionDetail()
      A reference to the latest scheduled job execution detail of the current scheduled job
    • getAdditionalParameters

      public Map<String,Object> getAdditionalParameters()
      Additional information that can be used to add parameters for the scheduled job listeners.
      Returns:
      the additional parameters for this job
    • setType

      public void setType(String type)
    • setDetails

      public void setDetails(List<ScheduledJobDetailRef> details)
    • setTenantId

      public void setTenantId(String tenantId)
      The ID of the associated tenant.
      Parameters:
      tenant - ID of the associated tenant
    • setLastExecuted

      public void setLastExecuted(Instant lastExecuted)
      The date on which the job last executed.
      Parameters:
      lastExecuted - The date on which the job last executed.
    • setJobId

      public void setJobId(String jobId)
      The Context ID of the scheduled job
    • setTrackExecutionDetails

      public void setTrackExecutionDetails(boolean trackExecutionDetails)
      A flag to indicate whether the execution details of this scheduled-job should be tracked
    • setLastExecutionDetail

      public void setLastExecutionDetail(ScheduledJobExecutionDetailRef lastExecutionDetail)
      A reference to the latest scheduled job execution detail of the current scheduled job
    • setAdditionalParameters

      public void setAdditionalParameters(Map<String,Object> additionalParameters)
      Additional information that can be used to add parameters for the scheduled job listeners.
      Parameters:
      additionalParameters - the additional parameters for this job
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object