All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.singularity.config.SingularityTaskMetadataConfiguration Maven / Gradle / Ivy

package com.hubspot.singularity.config;

import java.util.List;
import java.util.Optional;

public class SingularityTaskMetadataConfiguration {
  private long waitToSendTaskCompletedMailBufferMillis = 0;

  private Optional> allowedMetadataTypes = Optional.empty();

  private Optional sendTaskCompletedMailOnceMetadataTypeIsAvailable = Optional.empty();

  private long maxMetadataMessageLength = 10000;

  private long maxMetadataTitleLength = 2000;

  public long getWaitToSendTaskCompletedMailBufferMillis() {
    return waitToSendTaskCompletedMailBufferMillis;
  }

  public void setWaitToSendTaskCompletedMailBufferMillis(
    long waitToSendTaskCompletedMailBufferMillis
  ) {
    this.waitToSendTaskCompletedMailBufferMillis =
      waitToSendTaskCompletedMailBufferMillis;
  }

  public Optional> getAllowedMetadataTypes() {
    return allowedMetadataTypes;
  }

  public void setAllowedMetadataTypes(Optional> allowedMetadataTypes) {
    this.allowedMetadataTypes = allowedMetadataTypes;
  }

  public Optional getSendTaskCompletedMailOnceMetadataTypeIsAvailable() {
    return sendTaskCompletedMailOnceMetadataTypeIsAvailable;
  }

  public void setSendTaskCompletedMailOnceMetadataTypeIsAvailable(
    Optional sendTaskCompletedMailOnceMetadataTypeIsAvailable
  ) {
    this.sendTaskCompletedMailOnceMetadataTypeIsAvailable =
      sendTaskCompletedMailOnceMetadataTypeIsAvailable;
  }

  public long getMaxMetadataMessageLength() {
    return maxMetadataMessageLength;
  }

  public void setMaxMetadataMessageLength(long maxMetadataMessageLength) {
    this.maxMetadataMessageLength = maxMetadataMessageLength;
  }

  public long getMaxMetadataTitleLength() {
    return maxMetadataTitleLength;
  }

  public void setMaxMetadataTitleLength(long maxMetadataTitleLength) {
    this.maxMetadataTitleLength = maxMetadataTitleLength;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy