Package ch.qos.logback.core.util
Class DefaultInvocationGate
- java.lang.Object
-
- ch.qos.logback.core.util.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.
-
-
Field Summary
-
Fields inherited from interface ch.qos.logback.core.util.InvocationGate
TIME_UNAVAILABLE
-
-
Constructor Summary
Constructors Constructor Description DefaultInvocationGate()Deprecated.DefaultInvocationGate(long minDelayThreshold, long maxDelayThreshold, long currentTime)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetInvocationCounter()Deprecated.booleanisTooSoon(long currentTime)Deprecated.The caller of this method can decide to skip further work if the returned value is true.
-
-
-
Method Detail
-
isTooSoon
public final boolean isTooSoon(long currentTime)
Deprecated.Description copied from interface:InvocationGateThe 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:
isTooSoonin interfaceInvocationGate- Returns:
- if true, caller should skip further work
-
getInvocationCounter
public long getInvocationCounter()
Deprecated.
-
-