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()
      The unregister method will use the connection of this location to unregister from LocationService
      java.util.concurrent.CompletableFuture<akka.Done> unregister()
      The successful registration of location can be unregistered using this method
    • Method Detail

      • location

        Location location()
        The unregister method will use the connection of this location to unregister from LocationService

        Returns:
        the handle to the Location that got registered in LocationService
      • unregister

        java.util.concurrent.CompletableFuture<akka.Done> unregister()
        The successful registration of location can be unregistered using this method

        Note 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