public class ActorAttributes
extends java.lang.Object
ActorMaterializer
.
Note that more attributes defined in Attributes
.Modifier and Type | Class and Description |
---|---|
static class |
ActorAttributes.Dispatcher |
static class |
ActorAttributes.Dispatcher$ |
static class |
ActorAttributes.SupervisionStrategy |
static class |
ActorAttributes.SupervisionStrategy$ |
Constructor and Description |
---|
ActorAttributes() |
Modifier and Type | Method and Description |
---|---|
static Attributes |
createLogLevels(Logging.LogLevel onElement,
Logging.LogLevel onFinish,
Logging.LogLevel onFailure)
Java API
|
static Attributes |
dispatcher(java.lang.String dispatcher)
Specifies the name of the dispatcher.
|
static ActorAttributes.Dispatcher |
IODispatcher() |
static Attributes |
logLevels(Logging.LogLevel onElement,
Logging.LogLevel onFinish,
Logging.LogLevel onFailure)
Configures
log() stage log-levels to be used when logging. |
static Attributes |
supervisionStrategy(scala.Function1<java.lang.Throwable,Supervision.Directive> decider)
Scala API: Decides how exceptions from user are to be handled.
|
static Attributes |
withSupervisionStrategy(Function<java.lang.Throwable,Supervision.Directive> decider)
Java API: Decides how exceptions from application code are to be handled.
|
public static ActorAttributes.Dispatcher IODispatcher()
public static Attributes dispatcher(java.lang.String dispatcher)
dispatcher
- (undocumented)public static Attributes supervisionStrategy(scala.Function1<java.lang.Throwable,Supervision.Directive> decider)
decider
- (undocumented)public static Attributes withSupervisionStrategy(Function<java.lang.Throwable,Supervision.Directive> decider)
decider
- (undocumented)public static Attributes createLogLevels(Logging.LogLevel onElement, Logging.LogLevel onFinish, Logging.LogLevel onFailure)
Configures log()
stage log-levels to be used when logging.
Logging a certain operation can be completely disabled by using LogLevels.Off
.
Passing in null as any of the arguments sets the level to its default value, which is:
Debug
for onElement
and onFinish
, and Error
for onFailure
.
onElement
- (undocumented)onFinish
- (undocumented)onFailure
- (undocumented)public static Attributes logLevels(Logging.LogLevel onElement, Logging.LogLevel onFinish, Logging.LogLevel onFailure)
log()
stage log-levels to be used when logging.
Logging a certain operation can be completely disabled by using LogLevels.Off
.
See Attributes.createLogLevels
for Java API
onElement
- (undocumented)onFinish
- (undocumented)onFailure
- (undocumented)