Class AkkaRegistrationFactory

java.lang.Object
csw.location.api.AkkaRegistrationFactory
Direct Known Subclasses:
AkkaRegistrationFactory$, JAkkaRegistrationFactory$

public class AkkaRegistrationFactory extends Object
A factory to create AkkaRegistration
  • Constructor Details

    • AkkaRegistrationFactory

      public AkkaRegistrationFactory()
  • Method Details

    • make

      public AkkaRegistration make(Connection.AkkaConnection connection, akka.actor.typed.ActorRef<?> actorRef, Metadata metadata)
      Parameters:
      connection - the Connection to register with LocationService
      actorRef - Provide a remote actor ref that is offering a connection. Local actors cannot be registered since they can't be communicated from components across the network
      metadata - represents additional information associated with registration
      Returns:
      AkkaRegistration instance. A LocalAkkaActorRegistrationNotAllowed is thrown if the actorRefURI provided is not a remote actorRef uri
    • make

      public AkkaRegistration make(Connection.AkkaConnection connection, akka.actor.typed.ActorRef<?> actorRef)
      Parameters:
      connection - the Connection to register with LocationService
      actorRef - Provide a remote actor ref that is offering a connection. Local actors cannot be registered since they can't be communicated from components across the network
      Returns:
      AkkaRegistration instance. A LocalAkkaActorRegistrationNotAllowed is thrown if the actorRefURI provided is not a remote actorRef uri