Package csw.location.api.javadsl
Interface IRegistrationResult
public interface IRegistrationResult
IRegistrationResult represents successful registration of a location
-
Method Summary
Modifier and TypeMethodDescriptionlocation()
Theunregister
method will use the connection of this location to unregister fromLocationService
CompletableFuture<akka.Done>
The successful registration of location can be unregistered using this method
-
Method Details
-
location
Location location()Theunregister
method will use the connection of this location to unregister fromLocationService
- Returns:
- the handle to the
Location
that got registered inLocationService
-
unregister
CompletableFuture<akka.Done> unregister()The successful registration of location can be unregistered using this methodNote that this method is idempotent, which means multiple call to unregister the same connection will be no-op once successfully unregistered from location service
- Returns:
- a CompletableFuture which completes when the location is is successfully unregistered or fails with
UnregistrationFailed
-