Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • java-operator-sdk
  • rework-state-handling
  • quarkus-36
  • bump-kotlinlogging-to-5.0.2
  • improve-patcher-documentation
  • use-internal-registry protected
  • v0.9 protected
  • kafka-nodeport-config-windows
  • v0.8 protected
  • test-k3d protected
  • simpleuc4 protected
  • reduce-code-duplication
  • test-coverage
  • code-cleanup
  • cleanup-commit-interval protected
  • delete-action-for-other-namespace
  • master protected
  • add-helm-test-debug2
  • add-helm-test-debug
  • v0.9.0 protected
  • v0.8.6 protected
  • v0.8.5 protected
  • v0.8.4 protected
  • v0.8.3 protected
  • v0.8.2 protected
  • v0.8.1 protected
  • v0.8.0 protected
  • v0.7.0 protected
  • v0.5.2 protected
  • v0.6.4 protected
  • v0.6.3 protected
  • v0.6.2 protected
  • v0.6.1 protected
  • v0.6.0 protected
  • v0.5.1 protected
  • v0.5.0 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
40 results

Duration.java

Blame
  • user avatar
    Simon Ehrenstein authored
    254bfe4b
    History
    Duration.java 746 B
    package common.dimensions;
    
    import java.util.concurrent.TimeUnit;
    import common.generators.WorkloadGenerator;
    
    /**
     * Wrapper class for the definition of the duration for the {@link WorkloadGenerator}.
     */
    public class Duration extends Dimension {
    
      private final int duration;
      private final TimeUnit timeUnit;
    
      /**
       * Define a new duration.
       *
       * @param duration the duration
       * @param timeUnit the time unit that applies to the specified {@code duration}
       */
      public Duration(final int duration, final TimeUnit timeUnit) {
        super();
        this.duration = duration;
        this.timeUnit = timeUnit;
      }
    
      public int getDuration() {
        return this.duration;
      }
    
      public TimeUnit getTimeUnit() {
        return this.timeUnit;
      }
    
    }