Package csw.location.api.models
Class AkkaRegistration
- java.lang.Object
-
- csw.location.api.models.Registration
-
- csw.location.api.models.AkkaRegistration
-
- All Implemented Interfaces:
LocationSerializable
,java.io.Serializable
,scala.Equals
,scala.Product
public final class AkkaRegistration extends Registration implements scala.Product, java.io.Serializable
AkkaRegistration holds the information needed to register an akka locationparam: connection the
Connection
to register withLocationService
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AkkaRegistration(Connection.AkkaConnection connection, java.net.URI actorRefURI, Metadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URI
actorRefURI()
Connection.AkkaConnection
connection()
TheConnection
to register withLocationService
Location
location(java.lang.String hostname)
Create a AkkaLocation that represents the live connection offered by the actorMetadata
metadata()
metadata represents any additional information (metadata) associated with registration
-
-
-
Constructor Detail
-
AkkaRegistration
public AkkaRegistration(Connection.AkkaConnection connection, java.net.URI actorRefURI, Metadata metadata)
-
-
Method Detail
-
connection
public Connection.AkkaConnection connection()
Description copied from class:Registration
TheConnection
to register withLocationService
- Specified by:
connection
in classRegistration
- Returns:
- (undocumented)
-
actorRefURI
public java.net.URI actorRefURI()
-
metadata
public Metadata metadata()
Description copied from class:Registration
metadata represents any additional information (metadata) associated with registration- Specified by:
metadata
in classRegistration
- Returns:
- (undocumented)
-
location
public Location location(java.lang.String hostname)
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
-
-