|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object akka.actor.TypedProps<T>
public class TypedProps<T>
Constructor Summary | |
---|---|
|
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)
|
Method Summary | ||
---|---|---|
Props |
actorProps()
Returns the akka.actor.Props representation of this TypedProps |
|
static
|
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
|
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
|
apply(java.lang.Class<T> implementation)
Uses the supplied class as the factory for the TypedActor implementation, proxying all the interfaces it implements. |
|
static
|
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
|
apply(scala.collection.immutable.Seq<java.lang.Class<?>> interfaces,
scala.Function0<T> creator)
INTERNAL API |
|
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()
|
|
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()
|
|
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. |
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 |
---|
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)Method Detail |
---|
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 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |