Class DefaultInvocationGate

  • All Implemented Interfaces:
    InvocationGate

    @Deprecated(since="2022-01-27")
    public class DefaultInvocationGate
    extends java.lang.Object
    implements InvocationGate
    Deprecated.
    This internal logback API is not supported by AEM as a Cloud Service.
    This class serves as a gateway for invocations of a "costly" operation on a critical execution path.
    • Constructor Detail

      • DefaultInvocationGate

        public DefaultInvocationGate()
        Deprecated.
      • DefaultInvocationGate

        public DefaultInvocationGate​(long minDelayThreshold,
                                     long maxDelayThreshold,
                                     long currentTime)
        Deprecated.
    • Method Detail

      • isTooSoon

        public final boolean isTooSoon​(long currentTime)
        Deprecated.
        Description copied from interface: InvocationGate
        The caller of this method can decide to skip further work if the returned value is true. Implementations should be able to give a reasonable answer even if current time date is unavailable.
        Specified by:
        isTooSoon in interface InvocationGate
        Returns:
        if true, caller should skip further work
      • getInvocationCounter

        public long getInvocationCounter()
        Deprecated.