001/*
002 * Logback: the reliable, generic, fast and flexible logging framework.
003 * Copyright (C) 1999-2026, QOS.ch. All rights reserved.
004 *
005 * This program and the accompanying materials are dual-licensed under
006 * either the terms of the Eclipse Public License v2.0 as published by
007 * the Eclipse Foundation
008 *
009 *   or (per the licensee's choosing)
010 *
011 * under the terms of the GNU Lesser General Public License version 2.1
012 * as published by the Free Software Foundation.
013 */
014
015package ch.qos.logback.core.util;
016
017/**
018 * Deprecated alias for {@link FixedIntervalInvocationGate}.
019 * <p>
020 * Kept for binary and source compatibility. New code should use
021 * {@link FixedIntervalInvocationGate}.
022 * </p>
023 *
024 * @author Ceki G&uuml;lc&uuml;
025 * @since 1.3.6/1.4.6
026 * @deprecated Use {@link FixedIntervalInvocationGate} instead.
027 * @see FixedIntervalInvocationGate
028 */
029@Deprecated
030public class SimpleInvocationGate extends FixedIntervalInvocationGate {
031
032    /**
033     * Creates a gate with {@link FixedIntervalInvocationGate#DEFAULT_INCREMENT}.
034     */
035    public SimpleInvocationGate() {
036        super();
037    }
038
039    /**
040     * Creates a gate that allows at most one successful passage per
041     * {@code anIncrement} period.
042     *
043     * @param anIncrement duration between allowed invocations; must not be
044     *                    {@code null}
045     */
046    public SimpleInvocationGate(Duration anIncrement) {
047        super(anIncrement);
048    }
049}