Package akka.actor

Interface ExtensionId<T extends Extension>

    • Method Detail

      • apply

        T apply​(ActorSystem system)
        Returns an instance of the extension identified by this ExtensionId instance.
      • createExtension

        T createExtension​(ExtendedActorSystem system)
        Is used by Akka to instantiate the Extension identified by this ExtensionId, internal use only.
      • equals

        boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • get

        T get​(ActorSystem system)
        Returns an instance of the extension identified by this ExtensionId instance. Java API For extensions written in Scala that are to be used from Java also, this method should be overridden to get correct return type.
        
         override def get(system: ActorSystem): TheExtension = super.get(system)
         

      • get

        T get​(ClassicActorSystemProvider system)
        Returns an instance of the extension identified by this ExtensionId instance. Java API For extensions written in Scala that are to be used from Java also, this method should be overridden to get correct return type.
        
         override def get(system: ClassicActorSystemProvider): TheExtension = super.get(system)
         

      • hashCode

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