akka.actor
Class Deploy

java.lang.Object
  extended by akka.actor.Deploy
All Implemented Interfaces:
java.io.Serializable, scala.Equals, scala.Product

public final class Deploy
extends java.lang.Object
implements scala.Product, scala.Serializable

This class represents deployment configuration for a given actor path. It is marked final in order to guarantee stable merge semantics (i.e. what overrides what in case multiple configuration sources are available) and is fully extensible via its Scope argument, and by the fact that an arbitrary Config section can be passed along with it (which will be merged when merging two Deploys).

The path field is used only when inserting the Deploy into a deployer and not needed when just doing deploy-as-you-go:


 context.actorOf(someProps, "someName", Deploy(scope = RemoteScope("someOtherNodeName")))
 

See Also:
Serialized Form

Constructor Summary
Deploy(RouterConfig routing)
          Java API to create a Deploy with the given RouterConfig
Deploy(RouterConfig routing, Scope scope)
          Java API to create a Deploy with the given RouterConfig with Scope
Deploy(Scope scope)
          Java API to create a Deploy with the given Scope
Deploy(java.lang.String path, com.typesafe.config.Config config, RouterConfig routerConfig, Scope scope)
           
 
Method Summary
 com.typesafe.config.Config config()
           
 java.lang.String path()
           
 RouterConfig routerConfig()
           
 Scope scope()
           
 Deploy withFallback(Deploy other)
          Do a merge between this and the other Deploy, where values from “this” take precedence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
 
Methods inherited from interface scala.Equals
canEqual, equals
 

Constructor Detail

Deploy

public Deploy(java.lang.String path,
              com.typesafe.config.Config config,
              RouterConfig routerConfig,
              Scope scope)

Deploy

public Deploy(RouterConfig routing)
Java API to create a Deploy with the given RouterConfig


Deploy

public Deploy(RouterConfig routing,
              Scope scope)
Java API to create a Deploy with the given RouterConfig with Scope


Deploy

public Deploy(Scope scope)
Java API to create a Deploy with the given Scope

Method Detail

path

public java.lang.String path()

config

public com.typesafe.config.Config config()

routerConfig

public RouterConfig routerConfig()

scope

public Scope scope()

withFallback

public Deploy withFallback(Deploy other)
Do a merge between this and the other Deploy, where values from “this” take precedence. The “path” of the other Deploy is not taken into account. All other members are merged using .withFallback(other.).