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

com.breuninger.boot.jobs.service.JobMutexGroup Maven / Gradle / Ivy

There is a newer version: 2.0.5.RELEASE
Show newest version
package com.breuninger.boot.jobs.service;

import static java.util.Arrays.asList;

import java.util.HashSet;
import java.util.Set;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

@Getter
@EqualsAndHashCode
@ToString
public class JobMutexGroup {

  private final String groupName;
  private final Set jobTypes;

  public JobMutexGroup(final String groupName, final String jobType, final String... moreJobTypes) {
    this.groupName = groupName;
    jobTypes = new HashSet() {{
      add(jobType);
      addAll(asList(moreJobTypes));
    }};
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy