public final class MapEventListeners extends Object
MapEventListener
.Modifier and Type | Method and Description |
---|---|
static <K,V,M extends ChronicleMap<K,V>> |
bytesLogging()
Returns the map event listener, which logs strings like
"Meta: [meta bytes] | [key bytes] = [value bytes]", where bytes are meta, key and value
areas from
Bytes passed to MapEventListener methods, printed in ASCII
coding. |
static <K,V,M extends ChronicleMap<K,V>> |
keyValueLogging()
Returns the map event listener, which logs strings like
"map file opType key value", where opType is either "get",
"put" or "remove", to the logger provided by SLF4J.
|
static <K,V,M extends ChronicleMap<K,V>> |
nop()
Returns the no-op event listener, i.
|
public static <K,V,M extends ChronicleMap<K,V>> MapEventListener<K,V,M> nop()
K
- the map key typeV
- the map value typeM
- the ChronicleMap
subclass, or ChronicleMap
type itself.
Typically this type should be just ChronicleMap
.public static <K,V,M extends ChronicleMap<K,V>> MapEventListener<K,V,M> bytesLogging()
Bytes
passed to MapEventListener
methods, printed in ASCII
coding.K
- the map key typeV
- the map value typeM
- the ChronicleMap
subclass, or ChronicleMap
type itself.
Typically this type should be just ChronicleMap
.public static <K,V,M extends ChronicleMap<K,V>> MapEventListener<K,V,M> keyValueLogging()
K
- the map key typeV
- the map value typeM
- the ChronicleMap
subclass, or ChronicleMap
type itself.
Typically this type should be just ChronicleMap
.Copyright © 2014. All rights reserved.