akka.actor
Class TypedProps<T>

java.lang.Object
  extended by akka.actor.TypedProps<T>
All Implemented Interfaces:
java.io.Serializable, scala.Equals, scala.Product

public class TypedProps<T>
extends java.lang.Object
implements scala.Product, scala.Serializable

See Also:
Serialized Form

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
<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
 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

TypedProps

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)

TypedProps

public 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.

Parameters:
implementation - (undocumented)

TypedProps

public 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.

Parameters:
interface_ - (undocumented)
implementation - (undocumented)

TypedProps

public 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.

Parameters:
interface_ - (undocumented)
implementation - (undocumented)
Method Detail

defaultDispatcherId

public static java.lang.String defaultDispatcherId()

defaultTimeout

public static scala.Option<Timeout> defaultTimeout()

defaultLoader

public static scala.Option<java.lang.ClassLoader> defaultLoader()

extractInterfaces

public static scala.collection.immutable.Seq<java.lang.Class<?>> extractInterfaces(java.lang.Class<?> clazz)
Parameters:
clazz - (undocumented)
Returns:
a sequence of interfaces that the specified class implements, or a sequence containing only itself, if itself is an interface.

apply

public 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.

Scala API

Parameters:
implementation - (undocumented)
Returns:
(undocumented)

apply

public 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.

Scala API

Parameters:
interface_ - (undocumented)
implementation - (undocumented)
Returns:
(undocumented)

apply

public 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.

Scala API

Parameters:
interface_ - (undocumented)
creator - (undocumented)
Returns:
(undocumented)

apply

public 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.

Scala API

Parameters:
evidence$1 - (undocumented)
Returns:
(undocumented)

apply

public static <T> TypedProps<T> apply(scala.collection.immutable.Seq<java.lang.Class<?>> interfaces,
                                      scala.Function0<T> creator)
INTERNAL API

Parameters:
interfaces - (undocumented)
creator - (undocumented)
Returns:
(undocumented)

interfaces

public scala.collection.immutable.Seq<java.lang.Class<?>> interfaces()

creator

public scala.Function0<T> creator()

dispatcher

public java.lang.String dispatcher()

deploy

public Deploy deploy()

timeout

public scala.Option<Timeout> timeout()

loader

public scala.Option<java.lang.ClassLoader> loader()

withDispatcher

public TypedProps<T> withDispatcher(java.lang.String d)
Returns a new TypedProps with the specified dispatcher set.

Parameters:
d - (undocumented)
Returns:
(undocumented)

withDeploy

public TypedProps<T> withDeploy(Deploy d)
Returns a new TypedProps with the specified deployment configuration.

Parameters:
d - (undocumented)
Returns:
(undocumented)

withLoader

public 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.

Parameters:
loader - (undocumented)
Returns:
(undocumented)

withLoader

public 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.

Scala API

Parameters:
loader - (undocumented)
Returns:
(undocumented)

withTimeout

public 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.

Parameters:
timeout - (undocumented)
Returns:
(undocumented)

withTimeout

public 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.

Parameters:
timeout - (undocumented)
Returns:
(undocumented)

withInterface

public 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.

Parameters:
interface_ - (undocumented)
Returns:
(undocumented)

withoutInterface

public 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.

Parameters:
interface_ - (undocumented)
Returns:
(undocumented)

actorProps

public Props actorProps()
Returns the akka.actor.Props representation of this TypedProps

Returns:
(undocumented)