Package akka.actor

Class TypedProps<T>

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product

    public final class TypedProps<T>
    extends java.lang.Object
    implements scala.Product, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        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<? 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<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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static <T> java.lang.String $lessinit$greater$default$3()
      TypedProps is a TypedActor configuration object, that is thread safe and fully sharable.
      protected static <T> Deploy $lessinit$greater$default$4()  
      protected static <T> scala.Option<Timeout> $lessinit$greater$default$5()  
      protected static <T> scala.Option<java.lang.ClassLoader> $lessinit$greater$default$6()  
      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.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)  
      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> java.lang.String apply$default$3()
      TypedProps is a TypedActor configuration object, that is thread safe and fully sharable.
      static <T> Deploy apply$default$4()  
      static <T> scala.Option<Timeout> apply$default$5()  
      static <T> scala.Option<java.lang.ClassLoader> apply$default$6()  
      boolean canEqual​(java.lang.Object x$1)  
      <T> TypedProps<T> copy​(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)  
      <T> scala.collection.immutable.Seq<java.lang.Class<?>> copy$default$1()  
      <T> scala.Function0<T> copy$default$2()  
      <T> java.lang.String copy$default$3()  
      <T> Deploy copy$default$4()  
      <T> scala.Option<Timeout> copy$default$5()  
      <T> scala.Option<java.lang.ClassLoader> copy$default$6()  
      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()  
      boolean equals​(java.lang.Object x$1)  
      static scala.collection.immutable.Seq<java.lang.Class<?>> extractInterfaces​(java.lang.Class<?> clazz)  
      int hashCode()  
      scala.collection.immutable.Seq<java.lang.Class<?>> interfaces()  
      scala.Option<java.lang.ClassLoader> loader()  
      int productArity()  
      java.lang.Object productElement​(int x$1)  
      java.lang.String productElementName​(int x$1)  
      scala.collection.Iterator<java.lang.Object> productIterator()  
      java.lang.String productPrefix()  
      scala.Option<Timeout> timeout()  
      java.lang.String toString()  
      static <T> scala.Option<scala.Tuple6<scala.collection.immutable.Seq<java.lang.Class<?>>,​scala.Function0<T>,​java.lang.String,​Deploy,​scala.Option<Timeout>,​scala.Option<java.lang.ClassLoader>>> unapply​(TypedProps<T> x$0)  
      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​(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.
      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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface scala.Product

        productElementNames
    • 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.
      • 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.
      • 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.
    • Method Detail

      • $lessinit$greater$default$3

        protected static <T> java.lang.String $lessinit$greater$default$3()
        TypedProps is a TypedActor configuration object, that is thread safe and fully sharable. It's used in TypedActorFactory.typedActorOf to configure a TypedActor instance.
      • $lessinit$greater$default$4

        protected static <T> Deploy $lessinit$greater$default$4()
      • $lessinit$greater$default$5

        protected static <T> scala.Option<Timeout> $lessinit$greater$default$5()
      • $lessinit$greater$default$6

        protected static <T> scala.Option<java.lang.ClassLoader> $lessinit$greater$default$6()
      • 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)
        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

      • 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

      • 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

      • 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

      • apply$default$3

        public static <T> java.lang.String apply$default$3()
        TypedProps is a TypedActor configuration object, that is thread safe and fully sharable. It's used in TypedActorFactory.typedActorOf to configure a TypedActor instance.
      • apply$default$4

        public static <T> Deploy apply$default$4()
      • apply$default$5

        public static <T> scala.Option<Timeout> apply$default$5()
      • apply$default$6

        public static <T> scala.Option<java.lang.ClassLoader> apply$default$6()
      • apply

        public static <T> TypedProps<T> apply​(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)
      • unapply

        public static <T> scala.Option<scala.Tuple6<scala.collection.immutable.Seq<java.lang.Class<?>>,​scala.Function0<T>,​java.lang.String,​Deploy,​scala.Option<Timeout>,​scala.Option<java.lang.ClassLoader>>> unapply​(TypedProps<T> x$0)
      • 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.
      • withDeploy

        public TypedProps<T> withDeploy​(Deploy d)
        Returns a new TypedProps with the specified deployment configuration.
      • 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.
      • 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

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

      • 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.
      • 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.
      • actorProps

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

        public <T> TypedProps<T> copy​(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)
      • copy$default$1

        public <T> scala.collection.immutable.Seq<java.lang.Class<?>> copy$default$1()
      • copy$default$2

        public <T> scala.Function0<T> copy$default$2()
      • copy$default$3

        public <T> java.lang.String copy$default$3()
      • copy$default$4

        public <T> Deploy copy$default$4()
      • copy$default$5

        public <T> scala.Option<Timeout> copy$default$5()
      • copy$default$6

        public <T> scala.Option<java.lang.ClassLoader> copy$default$6()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object