akka.contrib.pattern
Class ClusterSingletonManager$
java.lang.Object
akka.contrib.pattern.ClusterSingletonManager$
public class ClusterSingletonManager$
- extends java.lang.Object
Method Summary |
Props |
defaultProps(java.lang.String singletonName,
java.lang.Object terminationMessage,
java.lang.String role,
ClusterSingletonPropsFactory singletonPropsFactory)
Java API: Factory method for ClusterSingletonManager Props
with default values. |
Props |
props(scala.Function1<scala.Option<java.lang.Object>,Props> singletonProps,
java.lang.String singletonName,
java.lang.Object terminationMessage,
scala.Option<java.lang.String> role,
int maxHandOverRetries,
int maxTakeOverRetries,
scala.concurrent.duration.FiniteDuration retryInterval)
Scala API: Factory method for ClusterSingletonManager Props . |
Props |
props(java.lang.String singletonName,
java.lang.Object terminationMessage,
java.lang.String role,
int maxHandOverRetries,
int maxTakeOverRetries,
scala.concurrent.duration.FiniteDuration retryInterval,
ClusterSingletonPropsFactory singletonPropsFactory)
Java API: Factory method for ClusterSingletonManager Props . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODULE$
public static final ClusterSingletonManager$ MODULE$
- Static reference to the singleton instance of this Scala object.
ClusterSingletonManager$
public ClusterSingletonManager$()
props
public Props props(scala.Function1<scala.Option<java.lang.Object>,Props> singletonProps,
java.lang.String singletonName,
java.lang.Object terminationMessage,
scala.Option<java.lang.String> role,
int maxHandOverRetries,
int maxTakeOverRetries,
scala.concurrent.duration.FiniteDuration retryInterval)
- Scala API: Factory method for
ClusterSingletonManager
Props
.
Note that the singletonProps
function is applied when creating
the singleton actor and it must not use members that are not thread safe, e.g.
mutable state in enclosing actor.
props
public Props props(java.lang.String singletonName,
java.lang.Object terminationMessage,
java.lang.String role,
int maxHandOverRetries,
int maxTakeOverRetries,
scala.concurrent.duration.FiniteDuration retryInterval,
ClusterSingletonPropsFactory singletonPropsFactory)
- Java API: Factory method for
ClusterSingletonManager
Props
.
Note that the singletonPropsFactory
is invoked when creating
the singleton actor and it must not use members that are not thread safe, e.g.
mutable state in enclosing actor.
defaultProps
public Props defaultProps(java.lang.String singletonName,
java.lang.Object terminationMessage,
java.lang.String role,
ClusterSingletonPropsFactory singletonPropsFactory)
- Java API: Factory method for
ClusterSingletonManager
Props
with default values.
Note that the singletonPropsFactory
is invoked when creating
the singleton actor and it must not use members that are not thread safe, e.g.
mutable state in enclosing actor.