package com.qianwen.core.task.config;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
@ConfigurationProperties(TaskProperties.PREFIX)
|
/* loaded from: blade-starter-task-9.3.0.0-SNAPSHOT.jar:org/springblade/core/task/config/TaskProperties.class */
|
public class TaskProperties {
|
public static final String PREFIX = "blade.task";
|
private String distributor = TaskDistributorTypeConstants.ROCKET;
|
|
public void setDistributor(final String distributor) {
|
this.distributor = distributor;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof TaskProperties) {
|
TaskProperties other = (TaskProperties) o;
|
if (other.canEqual(this)) {
|
Object this$distributor = getDistributor();
|
Object other$distributor = other.getDistributor();
|
return this$distributor == null ? other$distributor == null : this$distributor.equals(other$distributor);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof TaskProperties;
|
}
|
|
public int hashCode() {
|
Object $distributor = getDistributor();
|
int result = (1 * 59) + ($distributor == null ? 43 : $distributor.hashCode());
|
return result;
|
}
|
|
public String toString() {
|
return "TaskProperties(distributor=" + getDistributor() + ")";
|
}
|
|
public String getDistributor() {
|
return this.distributor;
|
}
|
}
|