Class ActorMaterializerSettings
This class describes the configurable properties of the ActorMaterializer. Please refer to the withX methods for descriptions of the individual settings.
Inherited Members
Namespace: Akka.Streams
Assembly: Akka.Streams.dll
Syntax
public sealed class ActorMaterializerSettings
Constructors
| Improve this Doc View SourceActorMaterializerSettings(Int32, Int32, String, Decider, StreamSubscriptionTimeoutSettings, StreamRefSettings, Boolean, Int32, Boolean, Boolean, Int32, Int32)
TBD
Declaration
public ActorMaterializerSettings(int initialInputBufferSize, int maxInputBufferSize, string dispatcher, Decider supervisionDecider, StreamSubscriptionTimeoutSettings subscriptionTimeoutSettings, StreamRefSettings streamRefSettings, bool isDebugLogging, int outputBurstLimit, bool isFuzzingMode, bool isAutoFusing, int maxFixedBufferSize, int syncProcessingLimit = 1000)
Parameters
Type | Name | Description |
---|---|---|
Int32 | initialInputBufferSize | TBD |
Int32 | maxInputBufferSize | TBD |
String | dispatcher | TBD |
Decider | supervisionDecider | TBD |
StreamSubscriptionTimeoutSettings | subscriptionTimeoutSettings | TBD |
Akka.Streams.Dsl.StreamRefSettings | streamRefSettings | TBD |
Boolean | isDebugLogging | TBD |
Int32 | outputBurstLimit | TBD |
Boolean | isFuzzingMode | TBD |
Boolean | isAutoFusing | TBD |
Int32 | maxFixedBufferSize | TBD |
Int32 | syncProcessingLimit | TBD |
Fields
| Improve this Doc View SourceDispatcher
TBD
Declaration
public readonly string Dispatcher
Field Value
Type | Description |
---|---|
String |
InitialInputBufferSize
TBD
Declaration
public readonly int InitialInputBufferSize
Field Value
Type | Description |
---|---|
Int32 |
IsAutoFusing
TBD
Declaration
public readonly bool IsAutoFusing
Field Value
Type | Description |
---|---|
Boolean |
IsDebugLogging
TBD
Declaration
public readonly bool IsDebugLogging
Field Value
Type | Description |
---|---|
Boolean |
IsFuzzingMode
TBD
Declaration
public readonly bool IsFuzzingMode
Field Value
Type | Description |
---|---|
Boolean |
MaxFixedBufferSize
TBD
Declaration
public readonly int MaxFixedBufferSize
Field Value
Type | Description |
---|---|
Int32 |
MaxInputBufferSize
TBD
Declaration
public readonly int MaxInputBufferSize
Field Value
Type | Description |
---|---|
Int32 |
OutputBurstLimit
TBD
Declaration
public readonly int OutputBurstLimit
Field Value
Type | Description |
---|---|
Int32 |
StreamRefSettings
INTERNAL API
Declaration
public readonly StreamRefSettings StreamRefSettings
Field Value
Type | Description |
---|---|
Akka.Streams.Dsl.StreamRefSettings |
SubscriptionTimeoutSettings
TBD
Declaration
public readonly StreamSubscriptionTimeoutSettings SubscriptionTimeoutSettings
Field Value
Type | Description |
---|---|
StreamSubscriptionTimeoutSettings |
SupervisionDecider
TBD
Declaration
public readonly Decider SupervisionDecider
Field Value
Type | Description |
---|---|
Decider |
SyncProcessingLimit
TBD
Declaration
public readonly int SyncProcessingLimit
Field Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceCreate(ActorSystem)
TBD
Declaration
public static ActorMaterializerSettings Create(ActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
ActorSystem | system | TBD |
Returns
Type | Description |
---|---|
ActorMaterializerSettings | TBD |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceWithAutoFusing(Boolean)
TBD
Declaration
public ActorMaterializerSettings WithAutoFusing(bool isAutoFusing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isAutoFusing | TBD |
Returns
Type | Description |
---|---|
ActorMaterializerSettings | TBD |
WithDebugLogging(Boolean)
Enable to log all elements that are dropped due to failures (at DEBUG level).
Declaration
public ActorMaterializerSettings WithDebugLogging(bool isEnabled)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isEnabled | TBD |
Returns
Type | Description |
---|---|
ActorMaterializerSettings | TBD |
WithDispatcher(String)
This setting configures the default dispatcher to be used by streams materialized with the ActorMaterializer. This can be overridden for individual parts of the stream topology by using ActorAttributes.Dispatcher.
Declaration
public ActorMaterializerSettings WithDispatcher(string dispatcher)
Parameters
Type | Name | Description |
---|---|---|
String | dispatcher | TBD |
Returns
Type | Description |
---|---|
ActorMaterializerSettings | TBD |
WithFuzzingMode(Boolean)
Test utility: fuzzing mode means that GraphStage events are not processed in FIFO order within a fused subgraph, but randomized.
Declaration
public ActorMaterializerSettings WithFuzzingMode(bool isFuzzingMode)
Parameters
Type | Name | Description |
---|---|---|
Boolean | isFuzzingMode | TBD |
Returns
Type | Description |
---|---|
ActorMaterializerSettings | TBD |
WithInputBuffer(Int32, Int32)
Each asynchronous piece of a materialized stream topology is executed by one Actor that manages an input buffer for all inlets of its shape. This setting configures the default for initial and maximal input buffer in number of elements for each inlet. This can be overridden for individual parts of the stream topology by using Attributes.InputBuffer.
Declaration
public ActorMaterializerSettings WithInputBuffer(int initialSize, int maxSize)
Parameters
Type | Name | Description |
---|---|---|
Int32 | initialSize | TBD |
Int32 | maxSize | TBD |
Returns
Type | Description |
---|---|
ActorMaterializerSettings | TBD |
WithMaxFixedBufferSize(Int32)
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.
Declaration
public ActorMaterializerSettings WithMaxFixedBufferSize(int maxFixedBufferSize)
Parameters
Type | Name | Description |
---|---|---|
Int32 | maxFixedBufferSize | TBD |
Returns
Type | Description |
---|---|
ActorMaterializerSettings | TBD |
WithOutputBurstLimit(Int32)
Maximum number of elements emitted in batch if downstream signals large demand.
Declaration
public ActorMaterializerSettings WithOutputBurstLimit(int limit)
Parameters
Type | Name | Description |
---|---|---|
Int32 | limit |
Returns
Type | Description |
---|---|
ActorMaterializerSettings |
WithStreamRefSettings(StreamRefSettings)
Declaration
public ActorMaterializerSettings WithStreamRefSettings(StreamRefSettings settings)
Parameters
Type | Name | Description |
---|---|---|
Akka.Streams.Dsl.StreamRefSettings | settings |
Returns
Type | Description |
---|---|
ActorMaterializerSettings |
WithSubscriptionTimeoutSettings(StreamSubscriptionTimeoutSettings)
Leaked publishers and subscribers are cleaned up when they are not used within a given deadline, configured by StreamSubscriptionTimeoutSettings.
Declaration
public ActorMaterializerSettings WithSubscriptionTimeoutSettings(StreamSubscriptionTimeoutSettings settings)
Parameters
Type | Name | Description |
---|---|---|
StreamSubscriptionTimeoutSettings | settings | TBD |
Returns
Type | Description |
---|---|
ActorMaterializerSettings | TBD |
WithSupervisionStrategy(Decider)
Decides how exceptions from application code are to be handled, unless overridden for specific flows of the stream operations with ActorAttributes.SupervisionStrategy
Declaration
public ActorMaterializerSettings WithSupervisionStrategy(Decider decider)
Parameters
Type | Name | Description |
---|---|---|
Decider | decider | TBD |
Returns
Type | Description |
---|---|
ActorMaterializerSettings | TBD |
WithSyncProcessingLimit(Int32)
Limit for number of messages that can be processed synchronously in stream to substream communication
Declaration
public ActorMaterializerSettings WithSyncProcessingLimit(int limit)
Parameters
Type | Name | Description |
---|---|---|
Int32 | limit | TBD |
Returns
Type | Description |
---|---|
ActorMaterializerSettings | TBD |