public interface StorageEventLogger
| Modifier and Type | Interface and Description |
|---|---|
static class |
StorageEventLogger.Debug
Debug implementation of StorageEventLogger
This implementation logs behavior and exceptions
|
static class |
StorageEventLogger.Default
Default implementation of StorageEventLogger
This implementation doesn't log behavior but logs exceptions
|
static class |
StorageEventLogger.NoOp
NoOp StorageEventLogger
Doesn't log any storage events
|
| Modifier and Type | Method and Description |
|---|---|
static StorageEventLogger |
Debug()
Creates a Debug StorageEventLogger thats prints to the console.
|
static StorageEventLogger |
Debug(Consumer<? super String> messageConsumer)
Creates a Debug StorageEventLogger forwards its output to the supplied Consumer
|
static StorageEventLogger |
Default()
Creates a Default StorageEventLogger thats prints to the console.
|
static StorageEventLogger |
Default(Consumer<? super String> messageConsumer)
Creates a Default StorageEventLogger that forwards its output to the supplied Consumer
|
default void |
logChannelProcessingDisabled(StorageChannel channel) |
default void |
logChannelStoppedWorking(StorageChannel channel) |
default void |
logDisruption(StorageChannel channel,
Throwable t)
Note that not all Throwables are Exceptions.
|
default void |
logGarbageCollectorCompleted(long gcColdGeneration,
long lastGcColdCompletion) |
default void |
logGarbageCollectorCompletedHotPhase(long gcHotGeneration,
long lastGcHotCompletion) |
default void |
logGarbageCollectorEncounteredZombieObjectId(long objectId) |
default void |
logGarbageCollectorNotNeeded() |
default void |
logGarbageCollectorSweepingComplete(StorageEntityCache<?> entityCache) |
default void |
logLiveCheckComplete(StorageEntityCache<?> entityCache) |
static StorageEventLogger |
NoOp()
Creates a NoOp StorageEventLogger that does really nothing.
|
default void logChannelProcessingDisabled(StorageChannel channel)
default void logChannelStoppedWorking(StorageChannel channel)
default void logDisruption(StorageChannel channel, Throwable t)
InterruptedException. The actually fitting common term is "Disruption".
Throwable is a very low-level technical, compiler-oriented expression.channel - the affected channelt - the reason for the disruptiondefault void logLiveCheckComplete(StorageEntityCache<?> entityCache)
default void logGarbageCollectorSweepingComplete(StorageEntityCache<?> entityCache)
default void logGarbageCollectorNotNeeded()
default void logGarbageCollectorCompletedHotPhase(long gcHotGeneration,
long lastGcHotCompletion)
default void logGarbageCollectorCompleted(long gcColdGeneration,
long lastGcColdCompletion)
default void logGarbageCollectorEncounteredZombieObjectId(long objectId)
static StorageEventLogger NoOp()
static StorageEventLogger Default()
static StorageEventLogger Default(Consumer<? super String> messageConsumer)
messageConsumer - a Consumer that processes the forwarded log messagesstatic StorageEventLogger Debug()
static StorageEventLogger Debug(Consumer<? super String> messageConsumer)
messageConsumer - a Consumer that processes the forwarded log messagesCopyright © 2022 MicroStream Software. All rights reserved.