org.conqat.engine.service.shared.data.LateExternalUploadProcessingInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of teamscale-commons Show documentation
Show all versions of teamscale-commons Show documentation
Provides common DTOs for Teamscale
/*
* Copyright (c) CQSE GmbH
*
* 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 org.conqat.engine.service.shared.data;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Info object holding all data related to late external upload processing. */
public class LateExternalUploadProcessingInfo {
/**
* The name of the JSON property name for {@link #nextLateProcessingTimestamp}.
*/
public static final String NEXT_LATE_PROCESSING_TIMESTAMP_PROPERTY = "nextLateProcessingTimestamp";
/**
* The name of the JSON property name for {@link #lateProcessingAgeThreshold}.
*/
public static final String LATE_PROCESSING_AGE_THRESHOLD_PROPERTY = "lateProcessingAgeThreshold";
/**
* The name of the JSON property name for {@link #maxUploadAge}.
*/
public static final String MAX_UPLOAD_AGE_PROPERTY = "maxUploadAge";
/**
* The timestamp when the next late uploads are being processed. Note that which
* uploads are considered 'late' depends on {@link #lateProcessingAgeThreshold}.
*/
@JsonProperty(NEXT_LATE_PROCESSING_TIMESTAMP_PROPERTY)
Long nextLateProcessingTimestamp;
/**
* The late processing age threshold (in minutes). This defines when an upload
* is considered 'late' and hence late processing applies.
*/
@JsonProperty(LATE_PROCESSING_AGE_THRESHOLD_PROPERTY)
Integer lateProcessingAgeThreshold;
/**
* The maximum upload age of external uploads (in days). Older external uploads
* are rejected.
*/
@JsonProperty(MAX_UPLOAD_AGE_PROPERTY)
Integer maxUploadAge;
/** Constructor. */
@JsonCreator
public LateExternalUploadProcessingInfo(
@JsonProperty(NEXT_LATE_PROCESSING_TIMESTAMP_PROPERTY) Long nextLateProcessingTimestamp,
@JsonProperty(LATE_PROCESSING_AGE_THRESHOLD_PROPERTY) Integer lateProcessingAgeThreshold,
@JsonProperty(MAX_UPLOAD_AGE_PROPERTY) Integer maxUploadAge) {
this.nextLateProcessingTimestamp = nextLateProcessingTimestamp;
this.lateProcessingAgeThreshold = lateProcessingAgeThreshold;
this.maxUploadAge = maxUploadAge;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy