Package csw.location.api.client
Class LocationServiceClient
java.lang.Object
csw.location.api.client.LocationServiceClient
- All Implemented Interfaces:
LocationCodecs
,LocationCodecsBase
,LocationServiceCodecs
,csw.location.api.scaladsl.LocationService
,CommonCodecs
,msocket.api.codecs.BasicCodecs
public class LocationServiceClient
extends Object
implements csw.location.api.scaladsl.LocationService, LocationServiceCodecs, msocket.api.codecs.BasicCodecs
-
Nested Class Summary
Nested classes/interfaces inherited from interface csw.prefix.codecs.CommonCodecs
CommonCodecs.Timestamp, CommonCodecs.Timestamp$
-
Constructor Summary
ConstructorDescriptionLocationServiceClient
(msocket.api.Transport<LocationRequest> httpTransport, msocket.api.Transport<LocationStreamRequest> websocketTransport, CswVersion cswVersion, akka.actor.typed.ActorSystem<?> actorSystem) -
Method Summary
Modifier and TypeMethodDescriptionio.bullet.borer.Codec<ComponentId>
io.bullet.borer.Codec<ConnectionInfo>
io.bullet.borer.Codec<akka.Done>
<L extends Location>
scala.concurrent.Future<scala.Option<L>>find
(TypedConnection<L> connection) io.bullet.borer.Codec<scala.concurrent.duration.FiniteDuration>
io.bullet.borer.AdtEncodingStrategy
io.bullet.borer.Decoder<Instant>
io.bullet.borer.Encoder<Instant>
scala.concurrent.Future<scala.collection.immutable.List<Location>>
list()
scala.concurrent.Future<scala.collection.immutable.List<Location>>
list
(ComponentType componentType) scala.concurrent.Future<scala.collection.immutable.List<Location>>
list
(ConnectionType connectionType) scala.concurrent.Future<scala.collection.immutable.List<Location>>
scala.concurrent.Future<scala.collection.immutable.List<Location>>
listByPrefix
(String prefix) protected io.bullet.borer.Codec<Location>
io.bullet.borer.Codec<LocationRequest>
msocket.api.ErrorProtocol<LocationRequest>
io.bullet.borer.Codec<LocationServiceError>
io.bullet.borer.Codec<LocationStreamRequest>
msocket.api.ErrorProtocol<LocationStreamRequest>
io.bullet.borer.Codec<Metadata>
io.bullet.borer.Codec<NetworkType>
io.bullet.borer.Codec<Prefix>
scala.concurrent.Future<csw.location.api.scaladsl.RegistrationResult>
register
(Registration registration) io.bullet.borer.Codec<Registration>
<L extends Location>
scala.concurrent.Future<scala.Option<L>>resolve
(TypedConnection<L> connection, scala.concurrent.duration.FiniteDuration within) msocket.api.Subscription
subscribe
(Connection connection, scala.Function1<TrackingEvent, scala.runtime.BoxedUnit> callback) io.bullet.borer.Codec<akka.util.Timeout>
akka.stream.scaladsl.Source<TrackingEvent,
msocket.api.Subscription> track
(Connection connection) io.bullet.borer.Codec<TrackingEvent>
scala.concurrent.Future<akka.Done>
unregister
(Connection connection) scala.concurrent.Future<akka.Done>
io.bullet.borer.Codec<URI>
uriCodec()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface msocket.api.codecs.BasicCodecs
eitherCodec
Methods inherited from interface csw.prefix.codecs.CommonCodecs
enumCodec
Methods inherited from interface csw.location.api.codec.LocationCodecs
locationCodec
Methods inherited from interface csw.location.api.codec.LocationCodecsBase
connectionCodec
-
Constructor Details
-
LocationServiceClient
public LocationServiceClient(msocket.api.Transport<LocationRequest> httpTransport, msocket.api.Transport<LocationStreamRequest> websocketTransport, CswVersion cswVersion, akka.actor.typed.ActorSystem<?> actorSystem)
-
-
Method Details
-
LocationServiceErrorCodec
- Specified by:
LocationServiceErrorCodec
in interfaceLocationServiceCodecs
-
Timestamp
-
componentIdCodec
- Specified by:
componentIdCodec
in interfaceLocationCodecsBase
-
connectionInfoCodec
- Specified by:
connectionInfoCodec
in interfaceLocationCodecsBase
-
doneCodec
public io.bullet.borer.Codec<akka.Done> doneCodec()- Specified by:
doneCodec
in interfacemsocket.api.codecs.BasicCodecs
-
find
public <L extends Location> scala.concurrent.Future<scala.Option<L>> find(TypedConnection<L> connection) - Specified by:
find
in interfacecsw.location.api.scaladsl.LocationService
-
finiteDurationCodec
public io.bullet.borer.Codec<scala.concurrent.duration.FiniteDuration> finiteDurationCodec()- Specified by:
finiteDurationCodec
in interfaceCommonCodecs
-
flatAdtEncoding
public io.bullet.borer.AdtEncodingStrategy flatAdtEncoding()- Specified by:
flatAdtEncoding
in interfaceCommonCodecs
-
instantDec
- Specified by:
instantDec
in interfaceCommonCodecs
-
instantEnc
- Specified by:
instantEnc
in interfaceCommonCodecs
-
list
- Specified by:
list
in interfacecsw.location.api.scaladsl.LocationService
-
list
public scala.concurrent.Future<scala.collection.immutable.List<Location>> list(ComponentType componentType) - Specified by:
list
in interfacecsw.location.api.scaladsl.LocationService
-
list
- Specified by:
list
in interfacecsw.location.api.scaladsl.LocationService
-
list
public scala.concurrent.Future<scala.collection.immutable.List<Location>> list(ConnectionType connectionType) - Specified by:
list
in interfacecsw.location.api.scaladsl.LocationService
-
listByPrefix
public scala.concurrent.Future<scala.collection.immutable.List<Location>> listByPrefix(String prefix) - Specified by:
listByPrefix
in interfacecsw.location.api.scaladsl.LocationService
-
locationCodecValue
- Specified by:
locationCodecValue
in interfaceLocationCodecsBase
-
locationHttpMessageCodec
- Specified by:
locationHttpMessageCodec
in interfaceLocationServiceCodecs
-
locationHttpMessageErrorProtocol
- Specified by:
locationHttpMessageErrorProtocol
in interfaceLocationServiceCodecs
-
locationWebsocketMessageCodec
- Specified by:
locationWebsocketMessageCodec
in interfaceLocationServiceCodecs
-
locationWebsocketMessageErrorProtocol
- Specified by:
locationWebsocketMessageErrorProtocol
in interfaceLocationServiceCodecs
-
metadataCodec
- Specified by:
metadataCodec
in interfaceLocationCodecsBase
-
networkType
- Specified by:
networkType
in interfaceLocationCodecsBase
-
prefixCodec
- Specified by:
prefixCodec
in interfaceCommonCodecs
-
register
public scala.concurrent.Future<csw.location.api.scaladsl.RegistrationResult> register(Registration registration) - Specified by:
register
in interfacecsw.location.api.scaladsl.LocationService
-
registrationCodec
- Specified by:
registrationCodec
in interfaceLocationCodecsBase
-
resolve
public <L extends Location> scala.concurrent.Future<scala.Option<L>> resolve(TypedConnection<L> connection, scala.concurrent.duration.FiniteDuration within) - Specified by:
resolve
in interfacecsw.location.api.scaladsl.LocationService
-
subscribe
public msocket.api.Subscription subscribe(Connection connection, scala.Function1<TrackingEvent, scala.runtime.BoxedUnit> callback) - Specified by:
subscribe
in interfacecsw.location.api.scaladsl.LocationService
-
timeoutInSecondsCodec
public io.bullet.borer.Codec<akka.util.Timeout> timeoutInSecondsCodec()- Specified by:
timeoutInSecondsCodec
in interfacemsocket.api.codecs.BasicCodecs
-
track
public akka.stream.scaladsl.Source<TrackingEvent,msocket.api.Subscription> track(Connection connection) - Specified by:
track
in interfacecsw.location.api.scaladsl.LocationService
-
trackingEventCodec
- Specified by:
trackingEventCodec
in interfaceLocationCodecsBase
-
unregister
- Specified by:
unregister
in interfacecsw.location.api.scaladsl.LocationService
-
unregisterAll
public scala.concurrent.Future<akka.Done> unregisterAll()- Specified by:
unregisterAll
in interfacecsw.location.api.scaladsl.LocationService
-
uriCodec
- Specified by:
uriCodec
in interfaceLocationCodecsBase
-