Class ScheduledJobRef
java.lang.Object
com.broadleafcommerce.common.messaging.domain.ScheduledJobRef
A reference to a ScheduledJob of the scheduled job microservice.
- Author:
- Chad Harchar (charchar)
-
Constructor Summary
ConstructorsConstructorDescriptionScheduledJobRef
(String type, List<ScheduledJobDetailRef> detailRefs) ScheduledJobRef
(String type, List<ScheduledJobDetailRef> detailRefs, String tenantId) ScheduledJobRef
(String type, List<ScheduledJobDetailRef> detailRefs, String tenantId, Instant lastExecuted) ScheduledJobRef
(String type, List<ScheduledJobDetailRef> detailRefs, String tenantId, Instant lastExecuted, String jobId, boolean trackExecutionDetails, ScheduledJobExecutionDetailRef lastExecutionDetail) ScheduledJobRef
(String type, List<ScheduledJobDetailRef> details, String tenantId, Instant lastExecuted, String jobId, boolean trackExecutionDetails, ScheduledJobExecutionDetailRef lastExecutionDetail, Map<String, Object> additionalParameters) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Additional information that can be used to add parameters for the scheduled job listeners.getJobId()
The Context ID of the scheduled jobThe date on which the job last executed.A reference to the latest scheduled job execution detail of the current scheduled jobThe ID of the associated tenant.getType()
int
hashCode()
boolean
A flag to indicate whether the execution details of this scheduled-job should be trackedvoid
setAdditionalParameters
(Map<String, Object> additionalParameters) Additional information that can be used to add parameters for the scheduled job listeners.void
setDetails
(List<ScheduledJobDetailRef> details) void
The Context ID of the scheduled jobvoid
setLastExecuted
(Instant lastExecuted) The date on which the job last executed.void
setLastExecutionDetail
(ScheduledJobExecutionDetailRef lastExecutionDetail) A reference to the latest scheduled job execution detail of the current scheduled jobvoid
setTenantId
(String tenantId) The ID of the associated tenant.void
setTrackExecutionDetails
(boolean trackExecutionDetails) A flag to indicate whether the execution details of this scheduled-job should be trackedvoid
toString()
-
Constructor Details
-
ScheduledJobRef
-
ScheduledJobRef
-
ScheduledJobRef
public ScheduledJobRef(String type, List<ScheduledJobDetailRef> detailRefs, String tenantId, Instant lastExecuted) -
ScheduledJobRef
public ScheduledJobRef(String type, List<ScheduledJobDetailRef> detailRefs, String tenantId, Instant lastExecuted, String jobId, boolean trackExecutionDetails, ScheduledJobExecutionDetailRef lastExecutionDetail) -
ScheduledJobRef
public ScheduledJobRef() -
ScheduledJobRef
public ScheduledJobRef(String type, List<ScheduledJobDetailRef> details, String tenantId, Instant lastExecuted, String jobId, boolean trackExecutionDetails, ScheduledJobExecutionDetailRef lastExecutionDetail, Map<String, Object> additionalParameters)
-
-
Method Details
-
getType
-
getDetails
-
getTenantId
The ID of the associated tenant.- Returns:
- ID of the associated tenant
-
getLastExecuted
The date on which the job last executed.- Returns:
- The date on which the job last executed.
-
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
A reference to the latest scheduled job execution detail of the current scheduled job -
getAdditionalParameters
Additional information that can be used to add parameters for the scheduled job listeners.- Returns:
- the additional parameters for this job
-
setType
-
setDetails
-
setTenantId
The ID of the associated tenant.- Parameters:
tenant
- ID of the associated tenant
-
setLastExecuted
The date on which the job last executed.- Parameters:
lastExecuted
- The date on which the job last executed.
-
setJobId
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
A reference to the latest scheduled job execution detail of the current scheduled job -
setAdditionalParameters
Additional information that can be used to add parameters for the scheduled job listeners.- Parameters:
additionalParameters
- the additional parameters for this job
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-