public static class LoggingQueryInvocationErrorHandler.Builder extends Object
LoggingQueryInvocationErrorHandler
.
The Logger
is defaulted to a LoggerFactory.getLogger(Class)
call using LoggingQueryInvocationErrorHandler.class
.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LoggingQueryInvocationErrorHandler |
build()
Initializes a
LoggingQueryInvocationErrorHandler as specified through this Builder. |
LoggingQueryInvocationErrorHandler.Builder |
logger(org.slf4j.Logger logger)
Sets the
Logger to log errors with from query handlers. |
protected void |
validate()
Validates whether the fields contained in this Builder are set accordingly.
|
public LoggingQueryInvocationErrorHandler.Builder logger(org.slf4j.Logger logger)
Logger
to log errors with from query handlers. Defaults to the result of LoggerFactory.getLogger(Class)
, using LoggingQueryInvocationErrorHandler.class
as input. Defaults to
a LoggerFactory.getLogger(Class)
call, providing the LoggingQueryInvocationErrorHandler
type.logger
- the Logger
to log errors with from query handlerspublic LoggingQueryInvocationErrorHandler build()
LoggingQueryInvocationErrorHandler
as specified through this Builder.LoggingQueryInvocationErrorHandler
as specified through this Builderprotected void validate() throws AxonConfigurationException
AxonConfigurationException
- if one field is asserted to be incorrect according to the Builder's
specificationsCopyright © 2010–2024. All rights reserved.