Package io.spine.logging.flogger.context
Class ContextMetadata.Builder
- java.lang.Object
-
- io.spine.logging.flogger.context.ContextMetadata.Builder
-
- Enclosing class:
- ContextMetadata
public static final class ContextMetadata.Builder extends Object
A builder to collect metadata key/values pairs in order. This class is only expected to be needed by implementations ofScopedLoggingContextand should not be considered a stable API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ContextMetadata.Builderadd(FloggerMetadataKey<T> key, T value)Add a single metadata key/value pair to the builder.ContextMetadatabuild()
-
-
-
Method Detail
-
add
@CanIgnoreReturnValue public <T> ContextMetadata.Builder add(FloggerMetadataKey<T> key, T value)
Add a single metadata key/value pair to the builder.
-
build
public ContextMetadata build()
-
-