Class LocationServiceClient

    • Constructor Detail

      • LocationServiceClient

        public LocationServiceClient​(msocket.api.Transport<LocationRequest> httpTransport,
                                     msocket.api.Transport<LocationStreamRequest> websocketTransport,
                                     akka.actor.typed.ActorSystem<?> actorSystem)
    • Method Detail

      • doneCodec

        public io.bullet.borer.Codec<akka.Done> doneCodec()
        Specified by:
        doneCodec in interface msocket.api.codecs.BasicCodecs
      • find

        public <L extends Location> scala.concurrent.Future<scala.Option<L>> find​(TypedConnection<L> connection)
        Specified by:
        find in interface csw.location.api.scaladsl.LocationService
      • finiteDurationCodec

        public io.bullet.borer.Codec<scala.concurrent.duration.FiniteDuration> finiteDurationCodec()
        Specified by:
        finiteDurationCodec in interface CommonCodecs
      • flatAdtEncoding

        public io.bullet.borer.AdtEncodingStrategy flatAdtEncoding()
        Specified by:
        flatAdtEncoding in interface CommonCodecs
      • instantDec

        public io.bullet.borer.Decoder<java.time.Instant> instantDec()
        Specified by:
        instantDec in interface CommonCodecs
      • instantEnc

        public io.bullet.borer.Encoder<java.time.Instant> instantEnc()
        Specified by:
        instantEnc in interface CommonCodecs
      • list

        public scala.concurrent.Future<scala.collection.immutable.List<Location>> list()
        Specified by:
        list in interface csw.location.api.scaladsl.LocationService
      • list

        public scala.concurrent.Future<scala.collection.immutable.List<Location>> list​(ComponentType componentType)
        Specified by:
        list in interface csw.location.api.scaladsl.LocationService
      • list

        public scala.concurrent.Future<scala.collection.immutable.List<Location>> list​(java.lang.String hostname)
        Specified by:
        list in interface csw.location.api.scaladsl.LocationService
      • list

        public scala.concurrent.Future<scala.collection.immutable.List<Location>> list​(ConnectionType connectionType)
        Specified by:
        list in interface csw.location.api.scaladsl.LocationService
      • listByPrefix

        public scala.concurrent.Future<scala.collection.immutable.List<Location>> listByPrefix​(java.lang.String prefix)
        Specified by:
        listByPrefix in interface csw.location.api.scaladsl.LocationService
      • register

        public scala.concurrent.Future<csw.location.api.scaladsl.RegistrationResult> register​(Registration registration)
        Specified by:
        register in interface csw.location.api.scaladsl.LocationService
      • resolve

        public <L extends Location> scala.concurrent.Future<scala.Option<L>> resolve​(TypedConnection<L> connection,
                                                                                     scala.concurrent.duration.FiniteDuration within)
        Specified by:
        resolve in interface csw.location.api.scaladsl.LocationService
      • subscribe

        public msocket.api.Subscription subscribe​(Connection connection,
                                                  scala.Function1<TrackingEvent,​scala.runtime.BoxedUnit> callback)
        Specified by:
        subscribe in interface csw.location.api.scaladsl.LocationService
      • timeoutInSecondsCodec

        public io.bullet.borer.Codec<akka.util.Timeout> timeoutInSecondsCodec()
        Specified by:
        timeoutInSecondsCodec in interface msocket.api.codecs.BasicCodecs
      • track

        public akka.stream.scaladsl.Source<TrackingEvent,​msocket.api.Subscription> track​(Connection connection)
        Specified by:
        track in interface csw.location.api.scaladsl.LocationService
      • unregister

        public scala.concurrent.Future<akka.Done> unregister​(Connection connection)
        Specified by:
        unregister in interface csw.location.api.scaladsl.LocationService
      • unregisterAll

        public scala.concurrent.Future<akka.Done> unregisterAll()
        Specified by:
        unregisterAll in interface csw.location.api.scaladsl.LocationService