|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILoggingEventCache
Abstraction interface for defining a cache for Logback ILoggingEvent
instances.
Method Summary | |
---|---|
List<ch.qos.logback.classic.spi.ILoggingEvent> |
get()
Retrieves a list containing 0 or more cached ILoggingEvent s. |
void |
put(ch.qos.logback.classic.spi.ILoggingEvent event)
Stores the provided event in the cache. |
Method Detail |
---|
List<ch.qos.logback.classic.spi.ILoggingEvent> get()
ILoggingEvent
s.
Note: Implementations of this method must return a non-null
list, even if the list is empty, and the
returned list must not contain any null
elements. If the caching implementation has discarded any of
the events that were passed to put(ILoggingEvent)
, they should be completely omitted from the event
list returned.
null
list containing 0 or more cached eventsvoid put(ch.qos.logback.classic.spi.ILoggingEvent event)
SoftReference
or
other java.lang.ref
type which could potentially result in the event being garbage collected before the
get()
method is called.
event
- the event to cache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |