Package csw.location.api
Class AkkaRegistrationFactory
java.lang.Object
csw.location.api.AkkaRegistrationFactory
- Direct Known Subclasses:
AkkaRegistrationFactory$
,JAkkaRegistrationFactory$
A factory to create AkkaRegistration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmake
(Connection.AkkaConnection connection, akka.actor.typed.ActorRef<?> actorRef) make
(Connection.AkkaConnection connection, akka.actor.typed.ActorRef<?> actorRef, Metadata metadata)
-
Constructor Details
-
AkkaRegistrationFactory
public AkkaRegistrationFactory()
-
-
Method Details
-
make
public AkkaRegistration make(Connection.AkkaConnection connection, akka.actor.typed.ActorRef<?> actorRef, Metadata metadata) - Parameters:
connection
- theConnection
to register withLocationService
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 networkmetadata
- 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
- theConnection
to register withLocationService
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
-