Package csw.location.api.javadsl
Interface IRegistrationResult
-
public interface IRegistrationResult
IRegistrationResult represents successful registration of a location
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Location
location()
Theunregister
method will use the connection of this location to unregister fromLocationService
java.util.concurrent.CompletableFuture<akka.Done>
unregister()
The successful registration of location can be unregistered using this method
-
-
-
Method Detail
-
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
java.util.concurrent.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
-
-