public final class TypedProps<T>
extends java.lang.Object
implements scala.Product, scala.Serializable
Modifier | Constructor and Description |
---|---|
|
TypedProps(java.lang.Class<? super T> interface_,
java.lang.Class<T> implementation)
Java API: Uses the supplied class as the factory for the TypedActor implementation,
and that has the specified interface,
or if the interface class is not an interface, all the interfaces it implements,
appended in the sequence of interfaces.
|
|
TypedProps(java.lang.Class<? super T> interface_,
Creator<T> implementation)
Java API: Uses the supplied Creator as the factory for the TypedActor implementation,
and that has the specified interface,
or if the interface class is not an interface, all the interfaces it implements,
appended in the sequence of interfaces.
|
|
TypedProps(java.lang.Class<T> implementation)
Uses the supplied class as the factory for the TypedActor implementation,
and that has the specified interface,
or if the interface class is not an interface, all the interfaces it implements,
appended in the sequence of interfaces.
|
protected |
TypedProps(scala.collection.immutable.Seq<java.lang.Class<?>> interfaces,
scala.Function0<T> creator,
java.lang.String dispatcher,
Deploy deploy,
scala.Option<Timeout> timeout,
scala.Option<java.lang.ClassLoader> loader) |
Modifier and Type | Method and Description |
---|---|
Props |
actorProps()
Returns the akka.actor.Props representation of this TypedProps
|
static <T> TypedProps<T> |
apply(java.lang.Class<? super T> interface_,
java.lang.Class<T> implementation)
Uses the supplied class as the factory for the TypedActor implementation,
and that has the specified interface,
or if the interface class is not an interface, all the interfaces it implements,
appended in the sequence of interfaces.
|
static <T> TypedProps<T> |
apply(java.lang.Class<? super T> interface_,
scala.Function0<T> creator)
Uses the supplied thunk as the factory for the TypedActor implementation,
and that has the specified interface,
or if the interface class is not an interface, all the interfaces it implements,
appended in the sequence of interfaces.
|
static <T> TypedProps<T> |
apply(java.lang.Class<T> implementation)
Uses the supplied class as the factory for the TypedActor implementation,
proxying all the interfaces it implements.
|
static <T> TypedProps<T> |
apply(scala.reflect.ClassTag<T> evidence$1)
Uses the supplied class as the factory for the TypedActor implementation,
proxying all the interfaces it implements.
|
static <T> TypedProps<T> |
apply(scala.collection.immutable.Seq<java.lang.Class<?>> interfaces,
scala.Function0<T> creator)
INTERNAL API
|
abstract static boolean |
canEqual(java.lang.Object that) |
scala.Function0<T> |
creator() |
static java.lang.String |
defaultDispatcherId() |
static scala.Option<java.lang.ClassLoader> |
defaultLoader() |
static scala.Option<Timeout> |
defaultTimeout() |
Deploy |
deploy() |
java.lang.String |
dispatcher() |
abstract static boolean |
equals(java.lang.Object that) |
static scala.collection.immutable.Seq<java.lang.Class<?>> |
extractInterfaces(java.lang.Class<?> clazz) |
scala.collection.immutable.Seq<java.lang.Class<?>> |
interfaces() |
scala.Option<java.lang.ClassLoader> |
loader() |
abstract static int |
productArity() |
abstract static java.lang.Object |
productElement(int n) |
static scala.collection.Iterator<java.lang.Object> |
productIterator() |
static java.lang.String |
productPrefix() |
scala.Option<Timeout> |
timeout() |
TypedProps<T> |
withDeploy(Deploy d)
Returns a new TypedProps with the specified deployment configuration.
|
TypedProps<T> |
withDispatcher(java.lang.String d)
Returns a new TypedProps with the specified dispatcher set.
|
TypedProps<T> |
withInterface(java.lang.Class<? super T> interface_)
Returns a new TypedProps that has the specified interface,
or if the interface class is not an interface, all the interfaces it implements,
appended in the sequence of interfaces.
|
TypedProps<T> |
withLoader(java.lang.ClassLoader loader)
Java API: return a new TypedProps that will use the specified ClassLoader to create its proxy class in
If loader is null, it will use the bootstrap classloader.
|
TypedProps<T> |
withLoader(scala.Option<java.lang.ClassLoader> loader)
Scala API: return a new TypedProps that will use the specified ClassLoader to create its proxy class in
If loader is null, it will use the bootstrap classloader.
|
TypedProps<T> |
withoutInterface(java.lang.Class<? super T> interface_)
Returns a new TypedProps without the specified interface,
or if the interface class is not an interface, all the interfaces it implements.
|
TypedProps<T> |
withTimeout(scala.Option<Timeout> timeout)
Scala API: return a new TypedProps that will use the specified Timeout for its non-void-returning methods,
if None is specified, it will use the default timeout as specified in the configuration.
|
TypedProps<T> |
withTimeout(Timeout timeout)
Java API: return a new TypedProps that will use the specified Timeout for its non-void-returning methods,
if null is specified, it will use the default timeout as specified in the configuration.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected TypedProps(scala.collection.immutable.Seq<java.lang.Class<?>> interfaces, scala.Function0<T> creator, java.lang.String dispatcher, Deploy deploy, scala.Option<Timeout> timeout, scala.Option<java.lang.ClassLoader> loader)
public TypedProps(java.lang.Class<T> implementation)
implementation
- (undocumented)public TypedProps(java.lang.Class<? super T> interface_, Creator<T> implementation)
interface_
- (undocumented)implementation
- (undocumented)public TypedProps(java.lang.Class<? super T> interface_, java.lang.Class<T> implementation)
interface_
- (undocumented)implementation
- (undocumented)public static java.lang.String defaultDispatcherId()
public static scala.Option<Timeout> defaultTimeout()
public static scala.Option<java.lang.ClassLoader> defaultLoader()
public static scala.collection.immutable.Seq<java.lang.Class<?>> extractInterfaces(java.lang.Class<?> clazz)
clazz
- (undocumented)public static <T> TypedProps<T> apply(java.lang.Class<T> implementation)
Scala API
implementation
- (undocumented)public static <T> TypedProps<T> apply(java.lang.Class<? super T> interface_, java.lang.Class<T> implementation)
Scala API
interface_
- (undocumented)implementation
- (undocumented)public static <T> TypedProps<T> apply(java.lang.Class<? super T> interface_, scala.Function0<T> creator)
Scala API
interface_
- (undocumented)creator
- (undocumented)public static <T> TypedProps<T> apply(scala.reflect.ClassTag<T> evidence$1)
Scala API
evidence$1
- (undocumented)public static <T> TypedProps<T> apply(scala.collection.immutable.Seq<java.lang.Class<?>> interfaces, scala.Function0<T> creator)
interfaces
- (undocumented)creator
- (undocumented)public abstract static boolean canEqual(java.lang.Object that)
public abstract static boolean equals(java.lang.Object that)
public abstract static java.lang.Object productElement(int n)
public abstract static int productArity()
public static scala.collection.Iterator<java.lang.Object> productIterator()
public static java.lang.String productPrefix()
public scala.collection.immutable.Seq<java.lang.Class<?>> interfaces()
public scala.Function0<T> creator()
public java.lang.String dispatcher()
public Deploy deploy()
public scala.Option<Timeout> timeout()
public scala.Option<java.lang.ClassLoader> loader()
public TypedProps<T> withDispatcher(java.lang.String d)
d
- (undocumented)public TypedProps<T> withDeploy(Deploy d)
d
- (undocumented)public TypedProps<T> withLoader(java.lang.ClassLoader loader)
loader
- (undocumented)public TypedProps<T> withLoader(scala.Option<java.lang.ClassLoader> loader)
Scala API
loader
- (undocumented)public TypedProps<T> withTimeout(Timeout timeout)
timeout
- (undocumented)public TypedProps<T> withTimeout(scala.Option<Timeout> timeout)
timeout
- (undocumented)public TypedProps<T> withInterface(java.lang.Class<? super T> interface_)
interface_
- (undocumented)public TypedProps<T> withoutInterface(java.lang.Class<? super T> interface_)
interface_
- (undocumented)public Props actorProps()