View Javadoc
1   /*
2    * Logback: the reliable, generic, fast and flexible logging framework.
3    * Copyright (C) 1999-2026, QOS.ch. All rights reserved.
4    *
5    * This program and the accompanying materials are dual-licensed under
6    * either the terms of the Eclipse Public License v2.0 as published by
7    * the Eclipse Foundation
8    *
9    *   or (per the licensee's choosing)
10   *
11   * under the terms of the GNU Lesser General Public License version 2.1
12   * as published by the Free Software Foundation.
13   */
14  
15  package ch.qos.logback.core.util;
16  
17  /**
18   * Deprecated alias for {@link FixedIntervalInvocationGate}.
19   * <p>
20   * Kept for binary and source compatibility. New code should use
21   * {@link FixedIntervalInvocationGate}.
22   * </p>
23   *
24   * @author Ceki G&uuml;lc&uuml;
25   * @since 1.3.6/1.4.6
26   * @deprecated Use {@link FixedIntervalInvocationGate} instead.
27   * @see FixedIntervalInvocationGate
28   */
29  @Deprecated(since = "1.6.3", forRemoval = true)
30  public class SimpleInvocationGate extends FixedIntervalInvocationGate {
31  
32      /**
33       * Creates a gate with {@link FixedIntervalInvocationGate#DEFAULT_INCREMENT}.
34       */
35      public SimpleInvocationGate() {
36          super();
37      }
38  
39      /**
40       * Creates a gate that allows at most one successful passage per
41       * {@code anIncrement} period.
42       *
43       * @param anIncrement duration between allowed invocations; must not be
44       *                    {@code null}
45       */
46      public SimpleInvocationGate(Duration anIncrement) {
47          super(anIncrement);
48      }
49  }