Class Deploy
This class represents a configuration object used in the deployment of an actor.
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public class Deploy : IEquatable<Deploy>, ISurrogated
Constructors
| Improve this Doc View SourceDeploy()
Initializes a new instance of the Deploy class.
Declaration
public Deploy()
Deploy(Scope)
Initializes a new instance of the Deploy class.
Declaration
public Deploy(Scope scope)
Parameters
Type | Name | Description |
---|---|---|
Scope | scope | The scope to bind to this deployment. |
Deploy(RouterConfig)
Initializes a new instance of the Deploy class.
Declaration
public Deploy(RouterConfig routerConfig)
Parameters
Type | Name | Description |
---|---|---|
RouterConfig | routerConfig | The router to use for this deployment. |
Deploy(RouterConfig, Scope)
Initializes a new instance of the Deploy class.
Declaration
public Deploy(RouterConfig routerConfig, Scope scope)
Parameters
Type | Name | Description |
---|---|---|
RouterConfig | routerConfig | The router to use for this deployment. |
Scope | scope | The scope to bind to this deployment. |
Deploy(String, Scope)
Initializes a new instance of the Deploy class.
Declaration
public Deploy(string path, Scope scope)
Parameters
Type | Name | Description |
---|---|---|
String | path | The actor path associated with this deployment. |
Scope | scope | The scope to bind to this deployment. |
Deploy(String, Config, RouterConfig, Scope, String)
Initializes a new instance of the Deploy class.
Declaration
public Deploy(string path, Config config, RouterConfig routerConfig, Scope scope, string dispatcher)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path to deploy the actor. |
Config | config | The configuration used when deploying the actor. |
RouterConfig | routerConfig | The router used in this deployment. |
Scope | scope | The scope to bind to this deployment. |
String | dispatcher | The dispatcher used in this deployment. |
Deploy(String, Config, RouterConfig, Scope, String, String)
Initializes a new instance of the Deploy class.
Declaration
public Deploy(string path, Config config, RouterConfig routerConfig, Scope scope, string dispatcher, string mailbox)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path to deploy the actor. |
Config | config | The configuration used when deploying the actor. |
RouterConfig | routerConfig | The router used in this deployment. |
Scope | scope | The scope to bind to this deployment. |
String | dispatcher | The dispatcher used in this deployment. |
String | mailbox | The mailbox configured for the actor used in this deployment. |
Deploy(String, Config, RouterConfig, Scope, String, String, Int32)
Initializes a new instance of the Deploy class.
Declaration
public Deploy(string path, Config config, RouterConfig routerConfig, Scope scope, string dispatcher, string mailbox, int stashCapacity)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path to deploy the actor. |
Config | config | The configuration used when deploying the actor. |
RouterConfig | routerConfig | The router used in this deployment. |
Scope | scope | The scope to bind to this deployment. |
String | dispatcher | The dispatcher used in this deployment. |
String | mailbox | The mailbox configured for the actor used in this deployment. |
Int32 | stashCapacity | If this actor is using a stash, the bounded stash size. |
Fields
| Improve this Doc View SourceLocal
A deployment configuration that is bound to the Local scope.
Declaration
public static readonly Deploy Local
Field Value
Type | Description |
---|---|
Deploy |
NoDispatcherGiven
This deployment does not have a dispatcher associated with it.
Declaration
public static readonly string NoDispatcherGiven
Field Value
Type | Description |
---|---|
String |
NoMailboxGiven
This deployment does not have a mailbox associated with it.
Declaration
public static readonly string NoMailboxGiven
Field Value
Type | Description |
---|---|
String |
None
A deployment configuration where none of the options have been configured.
Declaration
public static readonly Deploy None
Field Value
Type | Description |
---|---|
Deploy |
NoScopeGiven
This deployment has an unspecified scope associated with it.
Declaration
public static readonly Scope NoScopeGiven
Field Value
Type | Description |
---|---|
Scope |
NoStashSize
No stash size set.
Declaration
public const int NoStashSize = -1
Field Value
Type | Description |
---|---|
Int32 |
Properties
| Improve this Doc View SourceConfig
The configuration used for this deployment.
Declaration
public Config Config { get; }
Property Value
Type | Description |
---|---|
Config |
Dispatcher
The dispatcher used in this deployment.
Declaration
public string Dispatcher { get; }
Property Value
Type | Description |
---|---|
String |
Mailbox
The mailbox configured for the actor used in this deployment.
Declaration
public string Mailbox { get; }
Property Value
Type | Description |
---|---|
String |
Path
The path where the actor is deployed.
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
String |
RouterConfig
The router used for this deployment.
Declaration
public RouterConfig RouterConfig { get; }
Property Value
Type | Description |
---|---|
RouterConfig |
Scope
The scope bound to this deployment.
Declaration
public Scope Scope { get; }
Property Value
Type | Description |
---|---|
Scope |
StashCapacity
The size of the IStash, if there's one configured.
Declaration
public int StashCapacity { get; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
Defaults to -1, which means an unbounded stash.
Methods
| Improve this Doc View SourceEquals(Deploy)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(Deploy other)
Parameters
Type | Name | Description |
---|---|---|
Deploy | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
Boolean |
|
ToSurrogate(ActorSystem)
Creates a surrogate representation of the current Deploy.
Declaration
public ISurrogate ToSurrogate(ActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
ActorSystem | system | The actor system that owns this router. |
Returns
Type | Description |
---|---|
ISurrogate | The surrogate representation of the current Deploy. |
WithDispatcher(String)
Creates a new Deploy with a given dispatcher
.
note
This method is immutable and returns a new instance of Deploy.
Declaration
public virtual Deploy WithDispatcher(string dispatcher)
Parameters
Type | Name | Description |
---|---|---|
String | dispatcher | The dispatcher used to configure the new Deploy. |
Returns
Type | Description |
---|---|
Deploy | A new Deploy with the provided |
WithFallback(Deploy)
Creates a new Deploy from this deployment using another Deploy to backfill options that might be missing from this deployment.
note
This method is immutable and returns a new instance of Deploy.
Declaration
public virtual Deploy WithFallback(Deploy other)
Parameters
Type | Name | Description |
---|---|---|
Deploy | other | The Deploy used for fallback configuration. |
Returns
Type | Description |
---|---|
Deploy | A new Deploy using |
WithMailbox(String)
Creates a new Deploy with a given mailbox
.
note
This method is immutable and returns a new instance of Deploy.
Declaration
public virtual Deploy WithMailbox(string mailbox)
Parameters
Type | Name | Description |
---|---|---|
String | mailbox | The mailbox used to configure the new Deploy. |
Returns
Type | Description |
---|---|
Deploy | A new Deploy with the provided |
WithRouterConfig(RouterConfig)
Creates a new Deploy with a given RouterConfig.
note
This method is immutable and returns a new instance of Deploy.
Declaration
public virtual Deploy WithRouterConfig(RouterConfig routerConfig)
Parameters
Type | Name | Description |
---|---|---|
RouterConfig | routerConfig | The RouterConfig used to configure the new Deploy. |
Returns
Type | Description |
---|---|
Deploy | A new Deploy with the provided |
WithScope(Scope)
Creates a new Deploy with a given Scope.
note
This method is immutable and returns a new instance of Deploy.
Declaration
public virtual Deploy WithScope(Scope scope)
Parameters
Type | Name | Description |
---|---|---|
Scope | scope |
Returns
Type | Description |
---|---|
Deploy | A new Deploy with the provided |
WithStashCapacity(Int32)
Creates a new Deploy with a given stashSize
.
note
This method is immutable and returns a new instance of Deploy.
Declaration
public virtual Deploy WithStashCapacity(int stashSize)
Parameters
Type | Name | Description |
---|---|---|
Int32 | stashSize |
Returns
Type | Description |
---|---|
Deploy | A new Deploy with a given |