Class ActorAttributes
- java.lang.Object
-
- akka.stream.ActorAttributes
-
public class ActorAttributes extends java.lang.ObjectAttributes for theMaterializer. Note that more attributes defined inAttributes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classActorAttributes.DebugLoggingEnables additional low level troubleshooting logging at DEBUG log levelstatic classActorAttributes.DebugLogging$static classActorAttributes.DispatcherConfigures the dispatcher to be used by streams.static classActorAttributes.Dispatcher$static classActorAttributes.FuzzingModeTest utility: fuzzing mode means that GraphStage events are not processed in FIFO order within a fused subgraph, but randomized.static classActorAttributes.FuzzingMode$static classActorAttributes.MaxFixedBufferSizeConfigure the maximum buffer size for which a FixedSizeBuffer will be preallocated.static classActorAttributes.MaxFixedBufferSize$static classActorAttributes.OutputBurstLimitMaximum number of elements emitted in batch if downstream signals large demand.static classActorAttributes.OutputBurstLimit$static classActorAttributes.StreamSubscriptionTimeoutDefines a timeout for stream subscription and what action to take when that hits.static classActorAttributes.StreamSubscriptionTimeout$static classActorAttributes.SupervisionStrategystatic classActorAttributes.SupervisionStrategy$static classActorAttributes.SyncProcessingLimitLimit for number of messages that can be processed synchronously in stream to substream communication.static classActorAttributes.SyncProcessingLimit$
-
Constructor Summary
Constructors Constructor Description ActorAttributes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AttributescreateLogLevels(Logging.LogLevel onElement)Java APIstatic AttributescreateLogLevels(Logging.LogLevel onElement, Logging.LogLevel onFinish, Logging.LogLevel onFailure)Java APIstatic AttributesdebugLogging(boolean enabled)Enables additional low level troubleshooting logging at DEBUG log levelstatic Attributesdispatcher(java.lang.String dispatcher)Specifies the name of the dispatcher.static AttributesfuzzingMode(boolean enabled)Test utility: fuzzing mode means that GraphStage events are not processed in FIFO order within a fused subgraph, but randomized.static ActorAttributes.DispatcherIODispatcher()static AttributeslogLevels(Logging.LogLevel onElement, Logging.LogLevel onFinish, Logging.LogLevel onFailure)Configureslog()operator log-levels to be used when logging.static Logging.LogLevellogLevels$default$1()static Logging.LogLevellogLevels$default$2()static Logging.LogLevellogLevels$default$3()static AttributesmaxFixedBufferSize(int size)Configure the maximum buffer size for which a FixedSizeBuffer will be preallocated.static AttributesoutputBurstLimit(int limit)Maximum number of elements emitted in batch if downstream signals large demand.static AttributesstreamSubscriptionTimeout(java.time.Duration timeout, StreamSubscriptionTimeoutTerminationMode mode)Java API: Defines a timeout for stream subscription and what action to take when that hits.static AttributesstreamSubscriptionTimeout(scala.concurrent.duration.FiniteDuration timeout, StreamSubscriptionTimeoutTerminationMode mode)Scala API: Defines a timeout for stream subscription and what action to take when that hits.static AttributessupervisionStrategy(scala.Function1<java.lang.Throwable,Supervision.Directive> decider)Scala API: Decides how exceptions from user are to be handled.static AttributessyncProcessingLimit(int limit)Limit for number of messages that can be processed synchronously in stream to substream communicationstatic AttributeswithSupervisionStrategy(Function<java.lang.Throwable,Supervision.Directive> decider)Java API: Decides how exceptions from application code are to be handled.
-
-
-
Method Detail
-
IODispatcher
public static ActorAttributes.Dispatcher IODispatcher()
-
dispatcher
public static Attributes dispatcher(java.lang.String dispatcher)
Specifies the name of the dispatcher. This also adds an async boundary.
-
supervisionStrategy
public static 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.
For the Java API see
withSupervisionStrategy(akka.japi.function.Function<java.lang.Throwable, akka.stream.Supervision.Directive>)
-
withSupervisionStrategy
public static 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.
For the Scala API see
supervisionStrategy(scala.Function1<java.lang.Throwable, akka.stream.Supervision.Directive>)
-
createLogLevels
public static 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().
-
createLogLevels
public static 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().
-
logLevels
public static 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
-
logLevels$default$1
public static Logging.LogLevel logLevels$default$1()
-
logLevels$default$2
public static Logging.LogLevel logLevels$default$2()
-
logLevels$default$3
public static Logging.LogLevel logLevels$default$3()
-
debugLogging
public static Attributes debugLogging(boolean enabled)
Enables additional low level troubleshooting logging at DEBUG log level
-
streamSubscriptionTimeout
public static Attributes streamSubscriptionTimeout(scala.concurrent.duration.FiniteDuration timeout, StreamSubscriptionTimeoutTerminationMode mode)
Scala API: Defines a timeout for stream subscription and what action to take when that hits.
-
streamSubscriptionTimeout
public static Attributes streamSubscriptionTimeout(java.time.Duration timeout, StreamSubscriptionTimeoutTerminationMode mode)
Java API: Defines a timeout for stream subscription and what action to take when that hits.
-
outputBurstLimit
public static Attributes outputBurstLimit(int limit)
Maximum number of elements emitted in batch if downstream signals large demand.
-
fuzzingMode
public static Attributes fuzzingMode(boolean enabled)
Test utility: fuzzing mode means that GraphStage events are not processed in FIFO order within a fused subgraph, but randomized.
-
maxFixedBufferSize
public static Attributes maxFixedBufferSize(int size)
Configure the maximum buffer size for which a FixedSizeBuffer will be preallocated. This defaults to a large value because it is usually better to fail early when system memory is not sufficient to hold the buffer.
-
syncProcessingLimit
public static Attributes syncProcessingLimit(int limit)
Limit for number of messages that can be processed synchronously in stream to substream communication
-
-