Package io.quarkus.vertx.mdc.provider
Class LateBoundMDCProvider
java.lang.Object
io.quarkus.vertx.mdc.provider.LateBoundMDCProvider
- All Implemented Interfaces:
org.jboss.logmanager.MDCProvider
Class enabling Quarkus to instantiate a
MDCProvider
and set a delegate during runtime initialization.
While/when no delegate is set it serves as a thread local MDC.
LateBoundMDCProvider is an implementation of the MDC Provider SPI
it will only be used/discovered if a provider configuration file
META-INF/services/org.jboss.logmanager.MDCProvider is created.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()copy()booleanisEmpty()removeObject(String key) static voidsetMDCProviderDelegate(org.jboss.logmanager.MDCProvider delegate) Set the actualMDCProviderto use as the delegate.
-
Constructor Details
-
LateBoundMDCProvider
public LateBoundMDCProvider()
-
-
Method Details
-
setMDCProviderDelegate
public static void setMDCProviderDelegate(org.jboss.logmanager.MDCProvider delegate) Set the actualMDCProviderto use as the delegate.- Parameters:
delegate- Properly constructedMDCProvider.
-
get
- Specified by:
getin interfaceorg.jboss.logmanager.MDCProvider
-
getObject
- Specified by:
getObjectin interfaceorg.jboss.logmanager.MDCProvider
-
put
- Specified by:
putin interfaceorg.jboss.logmanager.MDCProvider
-
putObject
- Specified by:
putObjectin interfaceorg.jboss.logmanager.MDCProvider
-
remove
- Specified by:
removein interfaceorg.jboss.logmanager.MDCProvider
-
removeObject
- Specified by:
removeObjectin interfaceorg.jboss.logmanager.MDCProvider
-
copy
- Specified by:
copyin interfaceorg.jboss.logmanager.MDCProvider
-
copyObject
- Specified by:
copyObjectin interfaceorg.jboss.logmanager.MDCProvider
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceorg.jboss.logmanager.MDCProvider
-
clear
public void clear()- Specified by:
clearin interfaceorg.jboss.logmanager.MDCProvider
-