Top Fields Methods
ch.qos.logback.core.util

public Interface InvocationGate

Known Direct Implementers
ch.qos.logback.core.util.SimpleInvocationGate, ch.qos.logback.core.util.DefaultInvocationGate

Field Summary

Modifier and TypeField and Description
public static final long

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

if true, caller should skip further work
isTooSoon
(long
can be TIME_UNAVAILABLE (-1) to signal that time is not available
currentTime
)

The caller of this method can decide to skip further work if the returned value is true.

Field Detail

TIME_UNAVAILABLEback to summary
public static final long TIME_UNAVAILABLE

Method Detail

isTooSoonback to summary
public boolean isTooSoon(long currentTime)

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.

Parameters
currentTime:long

can be TIME_UNAVAILABLE (-1) to signal that time is not available

Returns:boolean

if true, caller should skip further work