Package csw.location.api.models
Class AkkaRegistration
java.lang.Object
csw.location.api.models.Registration
csw.location.api.models.AkkaRegistration
- All Implemented Interfaces:
LocationSerializable
,Serializable
,scala.Equals
,scala.Product
AkkaRegistration holds the information needed to register an akka location
param: connection the Connection
to register with LocationService
param: actorRefURI 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
param: metadata represents additional metadata information associated with location. Defaulted to empty if not provided.
- See Also:
-
Constructor Summary
ConstructorDescriptionAkkaRegistration
(Connection.AkkaConnection connection, URI actorRefURI, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionTheConnection
to register withLocationService
Create a AkkaLocation that represents the live connection offered by the actormetadata()
metadata represents any additional information (metadata) associated with registrationwithCswVersion
(String version) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
AkkaRegistration
-
-
Method Details
-
connection
Description copied from class:Registration
TheConnection
to register withLocationService
- Specified by:
connection
in classRegistration
- Returns:
- (undocumented)
-
actorRefURI
-
metadata
Description copied from class:Registration
metadata represents any additional information (metadata) associated with registration- Specified by:
metadata
in classRegistration
- Returns:
- (undocumented)
-
location
Create a AkkaLocation that represents the live connection offered by the actor- Specified by:
location
in classRegistration
- Parameters:
hostname
- provide a hostname where the connection endpoint is available- Returns:
- an AkkaLocation location representing a live connection at provided hostname
-
withCswVersion
- Specified by:
withCswVersion
in classRegistration
-