public abstract class DeploymentConfig
extends java.lang.Object
implements scala.Product, scala.Serializable
DispatcherSelector
or MailboxCapacity
) the FIRST occurrence is used when creating the
actor; this means that adding configuration using the "with" methods
overrides what was configured previously.
Deliberately not sealed in order to emphasize future extensibility by the framework—this is not intended to be extended by user code.
The DeploymentConfig includes a next
reference so that it can form an
internally linked list. Traversal of this list stops when encountering the
EmptyDeploymentConfig$
object.
Constructor and Description |
---|
DeploymentConfig() |
Modifier and Type | Method and Description |
---|---|
<T extends DeploymentConfig> |
allOf(scala.reflect.ClassTag<T> evidence$2)
Retrieve all configuration nodes of a given type in the order that they
are present in this DeploymentConfig.
|
<T extends DeploymentConfig> |
filterNot(scala.reflect.ClassTag<T> evidence$3)
Remove all configuration nodes of a given type and return the resulting
DeploymentConfig.
|
<T extends DeploymentConfig> |
firstOrElse(T default_,
scala.reflect.ClassTag<T> evidence$1)
Find the first occurrence of a configuration node of the given type, falling
back to the provided default if none is found.
|
abstract DeploymentConfig |
next()
Reference to the tail of this DeploymentConfig list.
|
DeploymentConfig |
withDispatcherDefault()
Prepend a selection of the
ActorSystem default executor to this DeploymentConfig. |
DeploymentConfig |
withDispatcherFromConfig(java.lang.String path)
Prepend a selection of the executor found at the given Config path to this DeploymentConfig.
|
DeploymentConfig |
withDispatcherFromExecutionContext(scala.concurrent.ExecutionContext ec)
Prepend a selection of the given execution context to this DeploymentConfig.
|
DeploymentConfig |
withDispatcherFromExecutor(java.util.concurrent.Executor executor)
Prepend a selection of the given executor to this DeploymentConfig.
|
DeploymentConfig |
withMailboxCapacity(int capacity)
Prepend the given mailbox capacity configuration to this DeploymentConfig.
|
abstract DeploymentConfig |
withNext(DeploymentConfig next)
Create a copy of this DeploymentConfig node with its
next reference
replaced by the given object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public abstract DeploymentConfig next()
public abstract DeploymentConfig withNext(DeploymentConfig next)
next
reference
replaced by the given object. This does NOT append the given list
of configuration nodes to the current list!next
- (undocumented)public DeploymentConfig withDispatcherDefault()
ActorSystem
default executor to this DeploymentConfig.public DeploymentConfig withDispatcherFromConfig(java.lang.String path)
ActorSystem
that looks up the
executor.path
- (undocumented)public DeploymentConfig withDispatcherFromExecutor(java.util.concurrent.Executor executor)
executor
- (undocumented)public DeploymentConfig withDispatcherFromExecutionContext(scala.concurrent.ExecutionContext ec)
ec
- (undocumented)public DeploymentConfig withMailboxCapacity(int capacity)
capacity
- (undocumented)public <T extends DeploymentConfig> T firstOrElse(T default_, scala.reflect.ClassTag<T> evidence$1)
default_
- (undocumented)evidence$1
- (undocumented)public <T extends DeploymentConfig> scala.collection.immutable.List<DeploymentConfig> allOf(scala.reflect.ClassTag<T> evidence$2)
next
reference for all returned
nodes will be the EmptyDeploymentConfig$
.evidence$2
- (undocumented)public <T extends DeploymentConfig> DeploymentConfig filterNot(scala.reflect.ClassTag<T> evidence$3)
evidence$3
- (undocumented)