Package csw.location.api
Class AkkaRegistrationFactory
- java.lang.Object
-
- csw.location.api.AkkaRegistrationFactory
-
public class AkkaRegistrationFactory extends java.lang.Object
A factory to create AkkaRegistration
-
-
Constructor Summary
Constructors Constructor Description AkkaRegistrationFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AkkaRegistration
make(Connection.AkkaConnection connection, Prefix prefix, java.net.URI actorRefURI)
-
-
-
Method Detail
-
make
public static AkkaRegistration make(Connection.AkkaConnection connection, Prefix prefix, java.net.URI actorRefURI)
- Parameters:
connection
- theConnection
to register withLocationService
prefix
- prefix of the componentactorRefURI
- Provide a remote actor uri 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
-
-