public final class HttpGatewayClient extends Object implements GatewayClient
| Constructor and Description |
|---|
HttpGatewayClient(GatewayClientSettings settings,
GatewayClientCodec<io.netty.buffer.ByteBuf> codec)
Creates instance of http client transport.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Initiate cleaning of underlying resources (if any) like closing websocket connection or rSocket
session.
|
GatewayClientCodec<io.netty.buffer.ByteBuf> |
getCodec() |
reactor.core.publisher.Mono<Void> |
onClose()
Return close completion signal of the gateway client.
|
reactor.core.publisher.Flux<io.scalecube.services.api.ServiceMessage> |
requestChannel(reactor.core.publisher.Flux<io.scalecube.services.api.ServiceMessage> requests)
Communication mode that gives stream of responses to stream of requests.
|
reactor.core.publisher.Mono<io.scalecube.services.api.ServiceMessage> |
requestResponse(io.scalecube.services.api.ServiceMessage request)
Communication mode that gives single response to single request.
|
reactor.core.publisher.Flux<io.scalecube.services.api.ServiceMessage> |
requestStream(io.scalecube.services.api.ServiceMessage request)
Communication mode that gives stream of responses to single request.
|
public HttpGatewayClient(GatewayClientSettings settings, GatewayClientCodec<io.netty.buffer.ByteBuf> codec)
settings - client settingspublic reactor.core.publisher.Mono<io.scalecube.services.api.ServiceMessage> requestResponse(io.scalecube.services.api.ServiceMessage request)
GatewayClientrequestResponse in interface GatewayClientrequest - request message.public reactor.core.publisher.Flux<io.scalecube.services.api.ServiceMessage> requestStream(io.scalecube.services.api.ServiceMessage request)
GatewayClientrequestStream in interface GatewayClientrequest - request message.public reactor.core.publisher.Flux<io.scalecube.services.api.ServiceMessage> requestChannel(reactor.core.publisher.Flux<io.scalecube.services.api.ServiceMessage> requests)
GatewayClientrequestChannel in interface GatewayClientrequests - request stream.public void close()
GatewayClientclose in interface GatewayClientpublic reactor.core.publisher.Mono<Void> onClose()
GatewayClientonClose in interface GatewayClientpublic GatewayClientCodec<io.netty.buffer.ByteBuf> getCodec()
Copyright © 2015–2021. All rights reserved.