Package akka.stream
Class ActorAttributes$
- java.lang.Object
-
- akka.stream.ActorAttributes$
-
public class ActorAttributes$ extends java.lang.ObjectINTERNAL API Resolves the dispatcher's name with a fallback to the default blocking IO dispatcher. Note thatIODispatcher.dispatcheris not used here as the config used to createActorMaterializerSettingsis not easily accessible, instead the name is taken fromsettings.blockingIoDispatcher
-
-
Field Summary
Fields Modifier and Type Field Description static ActorAttributes$MODULE$Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description ActorAttributes$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributescreateLogLevels(Logging.LogLevel onElement)Java APIAttributescreateLogLevels(Logging.LogLevel onElement, Logging.LogLevel onFinish, Logging.LogLevel onFailure)Java APIAttributesdispatcher(java.lang.String dispatcher)Specifies the name of the dispatcher.ActorAttributes.DispatcherIODispatcher()AttributeslogLevels(Logging.LogLevel onElement, Logging.LogLevel onFinish, Logging.LogLevel onFailure)Configureslog()operator log-levels to be used when logging.Logging.LogLevellogLevels$default$1()Logging.LogLevellogLevels$default$2()Logging.LogLevellogLevels$default$3()AttributessupervisionStrategy(scala.Function1<java.lang.Throwable,Supervision.Directive> decider)Scala API: Decides how exceptions from user are to be handled.AttributeswithSupervisionStrategy(Function<java.lang.Throwable,Supervision.Directive> decider)Java API: Decides how exceptions from application code are to be handled.
-
-
-
Field Detail
-
MODULE$
public static final ActorAttributes$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
IODispatcher
public ActorAttributes.Dispatcher IODispatcher()
-
dispatcher
public Attributes dispatcher(java.lang.String dispatcher)
Specifies the name of the dispatcher. This also adds an async boundary.- Parameters:
dispatcher- (undocumented)- Returns:
- (undocumented)
-
supervisionStrategy
public Attributes supervisionStrategy(scala.Function1<java.lang.Throwable,Supervision.Directive> decider)
Scala API: Decides how exceptions from user are to be handled.Operators supporting supervision strategies explicitly document that they do so. If a operator does not document support for these, it should be assumed it does not support supervision.
- Parameters:
decider- (undocumented)- Returns:
- (undocumented)
-
withSupervisionStrategy
public Attributes withSupervisionStrategy(Function<java.lang.Throwable,Supervision.Directive> decider)
Java API: Decides how exceptions from application code are to be handled.Operators supporting supervision strategies explicitly document that they do so. If a operator does not document support for these, it should be assumed it does not support supervision.
- Parameters:
decider- (undocumented)- Returns:
- (undocumented)
-
createLogLevels
public Attributes createLogLevels(Logging.LogLevel onElement, Logging.LogLevel onFinish, Logging.LogLevel onFailure)
Java APIConfigures
log()operator log-levels to be used when logging. Logging a certain operation can be completely disabled by usingAttributes.logLevelOff().- Parameters:
onElement- (undocumented)onFinish- (undocumented)onFailure- (undocumented)- Returns:
- (undocumented)
-
createLogLevels
public Attributes createLogLevels(Logging.LogLevel onElement)
Java APIConfigures
log()operator log-levels to be used when logging onElement. Logging a certain operation can be completely disabled by usingAttributes.logLevelOff().- Parameters:
onElement- (undocumented)- Returns:
- (undocumented)
-
logLevels
public Attributes logLevels(Logging.LogLevel onElement, Logging.LogLevel onFinish, Logging.LogLevel onFailure)
Configureslog()operator log-levels to be used when logging. Logging a certain operation can be completely disabled by usingLogLevels.Off.See
Attributes.createLogLevelsfor Java API- Parameters:
onElement- (undocumented)onFinish- (undocumented)onFailure- (undocumented)- Returns:
- (undocumented)
-
logLevels$default$1
public Logging.LogLevel logLevels$default$1()
-
logLevels$default$2
public Logging.LogLevel logLevels$default$2()
-
logLevels$default$3
public Logging.LogLevel logLevels$default$3()
-
-