Class Settings
This class represents the overall ActorSystem settings which also provides a convenient access to the Config object. For more detailed information about the different possible configuration options, look in the Akka.NET Documentation under Configuration (https://getakka.net/articles/configuration/config.html).
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public class Settings
Constructors
| Improve this Doc View SourceSettings(ActorSystem, Config)
Initializes a new instance of the Settings class.
Declaration
public Settings(ActorSystem system, Config config)
Parameters
Type | Name | Description |
---|---|---|
ActorSystem | system | The system. |
Config | config | The configuration. |
Exceptions
Type | Condition |
---|---|
ConfigurationException | This exception is thrown if the 'akka.actor.provider' configuration item is not a valid type name or a valid actor ref provider. |
Settings(ActorSystem, Config, ActorSystemSetup)
Initializes a new instance of the Settings class.
Declaration
public Settings(ActorSystem system, Config config, ActorSystemSetup setup)
Parameters
Type | Name | Description |
---|---|---|
ActorSystem | system | The system. |
Config | config | The configuration. |
ActorSystemSetup | setup | The setup class used to help bootstrap the ActorSystem |
Exceptions
Type | Condition |
---|---|
ConfigurationException | This exception is thrown if the 'akka.actor.provider' configuration item is not a valid type name or a valid actor ref provider. |
Properties
| Improve this Doc View SourceAddLoggingReceive
Gets a value indicating whether [add logging receive].
Declaration
public bool AddLoggingReceive { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
AskTimeout
Gets the default timeout for Futures.Ask calls.
Declaration
public TimeSpan AskTimeout { get; }
Property Value
Type | Description |
---|---|
TimeSpan | The ask timeout. |
Config
Gets the configuration.
Declaration
public Config Config { get; }
Property Value
Type | Description |
---|---|
Config | The configuration. |
ConfigVersion
Gets the configuration version.
Declaration
public string ConfigVersion { get; }
Property Value
Type | Description |
---|---|
String | The configuration version. |
CoordinatedShutdownRunByActorSystemTerminate
Declaration
public bool CoordinatedShutdownRunByActorSystemTerminate { get; }
Property Value
Type | Description |
---|---|
Boolean |
CoordinatedShutdownTerminateActorSystem
Declaration
public bool CoordinatedShutdownTerminateActorSystem { get; }
Property Value
Type | Description |
---|---|
Boolean |
CreationTimeout
Gets the creation timeout.
Declaration
public TimeSpan CreationTimeout { get; }
Property Value
Type | Description |
---|---|
TimeSpan | The creation timeout. |
DebugAutoReceive
Gets a value indicating whether [debug automatic receive].
Declaration
public bool DebugAutoReceive { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
DebugEventStream
Gets a value indicating whether [debug event stream].
Declaration
public bool DebugEventStream { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
DebugLifecycle
Gets a value indicating whether [debug lifecycle].
Declaration
public bool DebugLifecycle { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
DebugRouterMisconfiguration
Gets a value indicating whether [debug router misconfiguration].
Declaration
public bool DebugRouterMisconfiguration { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
DebugTimerScheduler
Should TimerScheduler emit debug logs
Declaration
public bool DebugTimerScheduler { get; }
Property Value
Type | Description |
---|---|
Boolean |
DebugUnhandledMessage
Gets a value indicating whether [debug unhandled message].
Declaration
public bool DebugUnhandledMessage { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
DefaultVirtualNodesFactor
The number of default virtual nodes to use with ConsistentHashingRoutingLogic.
Declaration
public int DefaultVirtualNodesFactor { get; }
Property Value
Type | Description |
---|---|
Int32 |
EmitActorTelemetry
When set to true
, all actors will emit IActorTelemetryEvents when they are created, stopped, or restarted.
Declaration
public bool EmitActorTelemetry { get; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Defaults to false
.
FsmDebugEvent
TBD
Declaration
public bool FsmDebugEvent { get; }
Property Value
Type | Description |
---|---|
Boolean |
HasCluster
Used to indicate whether or not clustering is enabled for this ActorSystem.
Declaration
public bool HasCluster { get; }
Property Value
Type | Description |
---|---|
Boolean |
Home
Gets the home.
Declaration
public string Home { get; }
Property Value
Type | Description |
---|---|
String | The home. |
LogConfigOnStart
Gets a value indicating whether [log configuration on start].
Declaration
public bool LogConfigOnStart { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
LogDeadLetters
Gets the log dead letters.
Declaration
public int LogDeadLetters { get; }
Property Value
Type | Description |
---|---|
Int32 | The log dead letters. |
LogDeadLettersDuringShutdown
Gets a value indicating whether [log dead letters during shutdown].
Declaration
public bool LogDeadLettersDuringShutdown { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
LogDeadLettersSuspendDuration
TBD
Declaration
public TimeSpan LogDeadLettersSuspendDuration { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
LogFilter
Used to filter log messages based on the log source and message content.
Declaration
public LogFilterEvaluator LogFilter { get; }
Property Value
Type | Description |
---|---|
LogFilterEvaluator |
Remarks
Not enabled by default and may not be supported in all third party logging implementations.
LogFormatter
The default formatter used by the ILoggingAdapter.
Declaration
public ILogMessageFormatter LogFormatter { get; }
Property Value
Type | Description |
---|---|
ILogMessageFormatter |
Remarks
Can be overridden on individual Context.GetLogger()
calls.
LoggerAsyncStart
Gets the logger start timeout.
Declaration
public bool LoggerAsyncStart { get; }
Property Value
Type | Description |
---|---|
Boolean | The logger start timeout. |
Loggers
Gets the loggers.
Declaration
public IList<string> Loggers { get; }
Property Value
Type | Description |
---|---|
IList<String> | The loggers. |
LoggersDispatcher
Gets the default loggers dispatcher.
Declaration
public string LoggersDispatcher { get; }
Property Value
Type | Description |
---|---|
String | The loggers dispatcher. |
LoggerStartTimeout
Gets the logger start timeout.
Declaration
public TimeSpan LoggerStartTimeout { get; }
Property Value
Type | Description |
---|---|
TimeSpan | The logger start timeout. |
LogLevel
Gets the log level.
Declaration
public string LogLevel { get; }
Property Value
Type | Description |
---|---|
String | The log level. |
LogSerializerOverrideOnStart
Gets a value indicating whether [log serializer override on start].
Declaration
public bool LogSerializerOverrideOnStart { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
ProviderClass
Gets the provider class.
Declaration
public string ProviderClass { get; }
Property Value
Type | Description |
---|---|
String | The provider class. |
ProviderSelectionType
INTENRAL API
Declaration
public ProviderSelection ProviderSelectionType { get; }
Property Value
Type | Description |
---|---|
ProviderSelection |
SchedulerClass
Gets the scheduler implementation used by this system.
Declaration
public string SchedulerClass { get; }
Property Value
Type | Description |
---|---|
String |
SchedulerShutdownTimeout
TBD
Declaration
public TimeSpan SchedulerShutdownTimeout { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
SerializeAllCreators
Gets a value indicating whether [serialize all creators].
Declaration
public bool SerializeAllCreators { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
SerializeAllMessages
Gets a value indicating whether [serialize all messages].
Declaration
public bool SerializeAllMessages { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Setup
The setup used to help bootstrap this ActorSystem.
Declaration
public ActorSystemSetup Setup { get; }
Property Value
Type | Description |
---|---|
ActorSystemSetup |
StdoutLogger
Returns a singleton instance of the standard out logger.
Declaration
public MinimalLogger StdoutLogger { get; }
Property Value
Type | Description |
---|---|
MinimalLogger |
StdoutLogLevel
Gets the stdout log level.
Declaration
public string StdoutLogLevel { get; }
Property Value
Type | Description |
---|---|
String | The stdout log level. |
SupervisorStrategyClass
Gets the supervisor strategy class.
Declaration
public string SupervisorStrategyClass { get; }
Property Value
Type | Description |
---|---|
String | The supervisor strategy class. |
System
Gets the system.
Declaration
public ActorSystem System { get; }
Property Value
Type | Description |
---|---|
ActorSystem | The system. |
UnstartedPushTimeout
Gets the unstarted push timeout.
Declaration
public TimeSpan UnstartedPushTimeout { get; }
Property Value
Type | Description |
---|---|
TimeSpan | The unstarted push timeout. |
Methods
| Improve this Doc View SourceInjectTopLevelFallback(Config)
Injects a system config at the top of the fallback chain
Declaration
public void InjectTopLevelFallback(Config config)
Parameters
Type | Name | Description |
---|---|---|
Config | config | TBD |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String |