ProtocolBasedRPCTransport

class ProtocolBasedRPCTransport(protocol: RPCProtocol, payloadSerializer: PayloadSerializer) : RPCTransport

Functions

biStream
Link copied to clipboard
open suspend override fun <REQUEST, CLIENT_STREAM, RESPONSE> biStream(serviceCall: ColdBistreamCallDescription<REQUEST, CLIENT_STREAM, RESPONSE>, request: REQUEST, clientStream: Flow<CLIENT_STREAM>): Flow<RESPONSE>
clientStream
Link copied to clipboard
open suspend override fun <REQUEST, CLIENT_STREAM, RESPONSE> clientStream(serviceCall: ColdUpstreamCallDescription<REQUEST, CLIENT_STREAM, RESPONSE>, request: REQUEST, clientStream: Flow<CLIENT_STREAM>): RESPONSE
serverStream
Link copied to clipboard
open suspend override fun <REQUEST, RESPONSE> serverStream(serviceCall: ColdDownstreamCallDescription<REQUEST, RESPONSE>, request: REQUEST): Flow<RESPONSE>
singleCall
Link copied to clipboard
open suspend override fun <REQUEST, RESPONSE> singleCall(serviceCall: SingleCallDescription<REQUEST, RESPONSE>, request: REQUEST): RESPONSE

Properties

payloadSerializer
Link copied to clipboard
val payloadSerializer: PayloadSerializer
protocol
Link copied to clipboard
val protocol: RPCProtocol