Package akka.actor.typed
Class LogOptions.LogOptionsImpl
- java.lang.Object
-
- akka.actor.typed.LogOptions
-
- akka.actor.typed.LogOptions.LogOptionsImpl
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
- Enclosing class:
- LogOptions
public static final class LogOptions.LogOptionsImpl extends LogOptions implements scala.Product, java.io.Serializable
INTERNAL API- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.actor.typed.LogOptions
LogOptions.LogOptionsImpl, LogOptions.LogOptionsImpl$
-
-
Constructor Summary
Constructors Constructor Description LogOptionsImpl(boolean enabled, org.slf4j.event.Level level, scala.Option<org.slf4j.Logger> logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(java.lang.Object x$1)
LogOptions.LogOptionsImpl
copy(boolean enabled, org.slf4j.event.Level level, scala.Option<org.slf4j.Logger> logger)
boolean
copy$default$1()
org.slf4j.event.Level
copy$default$2()
scala.Option<org.slf4j.Logger>
copy$default$3()
boolean
enabled()
boolean
equals(java.lang.Object x$1)
java.util.Optional<org.slf4j.Logger>
getLogger()
Java APIint
hashCode()
org.slf4j.event.Level
level()
scala.Option<org.slf4j.Logger>
logger()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.lang.String
toString()
LogOptions
withEnabled(boolean enabled)
User control whether messages are logged or not.LogOptions
withLevel(org.slf4j.event.Level level)
TheLogging.LogLevel
to use when logging messages.LogOptions
withLogger(org.slf4j.Logger logger)
ALogger
to use when logging messages.-
Methods inherited from class akka.actor.typed.LogOptions
apply, create
-
-
-
-
Method Detail
-
enabled
public boolean enabled()
- Specified by:
enabled
in classLogOptions
-
level
public org.slf4j.event.Level level()
- Specified by:
level
in classLogOptions
-
logger
public scala.Option<org.slf4j.Logger> logger()
- Specified by:
logger
in classLogOptions
-
withEnabled
public LogOptions withEnabled(boolean enabled)
User control whether messages are logged or not. This is useful when you want to have an application configuration to control when to log messages.- Specified by:
withEnabled
in classLogOptions
-
withLevel
public LogOptions withLevel(org.slf4j.event.Level level)
TheLogging.LogLevel
to use when logging messages.- Specified by:
withLevel
in classLogOptions
-
withLogger
public LogOptions withLogger(org.slf4j.Logger logger)
ALogger
to use when logging messages.- Specified by:
withLogger
in classLogOptions
-
getLogger
public java.util.Optional<org.slf4j.Logger> getLogger()
Java API- Specified by:
getLogger
in classLogOptions
-
copy
public LogOptions.LogOptionsImpl copy(boolean enabled, org.slf4j.event.Level level, scala.Option<org.slf4j.Logger> logger)
-
copy$default$1
public boolean copy$default$1()
-
copy$default$2
public org.slf4j.event.Level copy$default$2()
-
copy$default$3
public scala.Option<org.slf4j.Logger> copy$default$3()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-