io.camunda.zeebe.spring.client.annotation.value.ZeebeWorkerValue Maven / Gradle / Ivy
/*
* Copyright © 2017 camunda services GmbH ([email protected])
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.camunda.zeebe.spring.client.annotation.value;
import io.camunda.zeebe.spring.client.bean.MethodInfo;
import java.time.Duration;
import java.util.List;
import java.util.Objects;
public class ZeebeWorkerValue implements ZeebeAnnotationValue {
private String type;
private String name;
private Duration timeout;
private Integer maxJobsActive;
private Duration requestTimeout;
private Duration pollInterval;
private Boolean autoComplete;
private List fetchVariables;
private Boolean enabled;
private MethodInfo methodInfo;
private List tenantIds;
private Boolean forceFetchAllVariables;
private Boolean streamEnabled;
private Duration streamTimeout;
private int maxRetries;
public ZeebeWorkerValue() {}
public ZeebeWorkerValue(
final String type,
final String name,
final Duration timeout,
final Integer maxJobsActive,
final Duration requestTimeout,
final Duration pollInterval,
final Boolean autoComplete,
final List fetchVariables,
final Boolean enabled,
final MethodInfo methodInfo,
final List tenantIds,
final Boolean forceFetchAllVariables,
final Boolean streamEnabled,
final Duration streamTimeout,
final int maxRetries) {
this.type = type;
this.name = name;
this.timeout = timeout;
this.maxJobsActive = maxJobsActive;
this.requestTimeout = requestTimeout;
this.pollInterval = pollInterval;
this.autoComplete = autoComplete;
this.fetchVariables = fetchVariables;
this.enabled = enabled;
this.methodInfo = methodInfo;
this.tenantIds = tenantIds;
this.forceFetchAllVariables = forceFetchAllVariables;
this.streamEnabled = streamEnabled;
this.streamTimeout = streamTimeout;
this.maxRetries = maxRetries;
}
public String getType() {
return type;
}
public void setType(final String type) {
this.type = type;
}
public String getName() {
return name;
}
public void setName(final String name) {
this.name = name;
}
public Duration getTimeout() {
return timeout;
}
public void setTimeout(final Duration timeout) {
this.timeout = timeout;
}
public Integer getMaxJobsActive() {
return maxJobsActive;
}
public void setMaxJobsActive(final Integer maxJobsActive) {
this.maxJobsActive = maxJobsActive;
}
public Duration getRequestTimeout() {
return requestTimeout;
}
public void setRequestTimeout(final Duration requestTimeout) {
this.requestTimeout = requestTimeout;
}
public Duration getPollInterval() {
return pollInterval;
}
public void setPollInterval(final Duration pollInterval) {
this.pollInterval = pollInterval;
}
public Boolean getAutoComplete() {
return autoComplete;
}
public void setAutoComplete(final Boolean autoComplete) {
this.autoComplete = autoComplete;
}
public List getFetchVariables() {
return fetchVariables;
}
public void setFetchVariables(final List fetchVariables) {
this.fetchVariables = fetchVariables;
}
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(final Boolean enabled) {
this.enabled = enabled;
}
public MethodInfo getMethodInfo() {
return methodInfo;
}
public void setMethodInfo(final MethodInfo methodInfo) {
this.methodInfo = methodInfo;
}
public List getTenantIds() {
return tenantIds;
}
public void setTenantIds(final List tenantIds) {
this.tenantIds = tenantIds;
}
public Boolean getForceFetchAllVariables() {
return forceFetchAllVariables;
}
public void setForceFetchAllVariables(final Boolean forceFetchAllVariables) {
this.forceFetchAllVariables = forceFetchAllVariables;
}
public Boolean getStreamEnabled() {
return streamEnabled;
}
public void setStreamEnabled(final Boolean streamEnabled) {
this.streamEnabled = streamEnabled;
}
public Duration getStreamTimeout() {
return streamTimeout;
}
public void setStreamTimeout(final Duration streamTimeout) {
this.streamTimeout = streamTimeout;
}
public int getMaxRetries() {
return maxRetries;
}
public void setMaxRetries(final int maxRetries) {
this.maxRetries = maxRetries;
}
@Override
public MethodInfo getBeanInfo() {
return methodInfo;
}
@Override
public int hashCode() {
return Objects.hash(
type,
name,
timeout,
maxJobsActive,
requestTimeout,
pollInterval,
autoComplete,
fetchVariables,
enabled,
methodInfo,
tenantIds,
forceFetchAllVariables,
streamEnabled,
streamTimeout,
maxRetries);
}
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final ZeebeWorkerValue that = (ZeebeWorkerValue) o;
return Objects.equals(type, that.type)
&& Objects.equals(name, that.name)
&& Objects.equals(timeout, that.timeout)
&& Objects.equals(maxJobsActive, that.maxJobsActive)
&& Objects.equals(requestTimeout, that.requestTimeout)
&& Objects.equals(pollInterval, that.pollInterval)
&& Objects.equals(autoComplete, that.autoComplete)
&& Objects.equals(fetchVariables, that.fetchVariables)
&& Objects.equals(enabled, that.enabled)
&& Objects.equals(methodInfo, that.methodInfo)
&& Objects.equals(tenantIds, that.tenantIds)
&& Objects.equals(forceFetchAllVariables, that.forceFetchAllVariables)
&& Objects.equals(streamEnabled, that.streamEnabled)
&& Objects.equals(streamTimeout, that.streamTimeout)
&& Objects.equals(maxRetries, that.maxRetries);
}
@Override
public String toString() {
return "ZeebeWorkerValue{"
+ "type='"
+ type
+ '\''
+ ", name='"
+ name
+ '\''
+ ", timeout="
+ timeout
+ ", maxJobsActive="
+ maxJobsActive
+ ", requestTimeout="
+ requestTimeout
+ ", pollInterval="
+ pollInterval
+ ", autoComplete="
+ autoComplete
+ ", fetchVariables="
+ fetchVariables
+ ", enabled="
+ enabled
+ ", methodInfo="
+ methodInfo
+ ", tenantIds="
+ tenantIds
+ ", forceFetchAllVariables="
+ forceFetchAllVariables
+ ", streamEnabled="
+ streamEnabled
+ ", streamTimeout="
+ streamTimeout
+ ", maxRetries="
+ maxRetries
+ '}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy