module
GRPC::Transport::ClientTransport
Overview
ClientTransport is the interface that Channel depends on. Concrete implementations (Http2ClientConnection) include this module. All methods return public stream types; PendingStream stays internal.
Direct including types
Defined in:
grpc/transport/interface.crInstance Method Summary
-
#accepting_new_calls? : Bool
Draining transports may still serve accepted RPCs.
- #close : Nil
- #closed? : Bool
- #open_bidi_stream_live(service : String, method : String, metadata : Metadata, send_queue_size : Int32) : RawBidiCall
- #open_bidi_stream_live(service : String, method : String, ctx : ClientContext, send_queue_size : Int32) : RawBidiCall
- #open_client_stream_live(service : String, method : String, metadata : Metadata, send_queue_size : Int32) : RawClientCall
- #open_client_stream_live(service : String, method : String, ctx : ClientContext, send_queue_size : Int32) : RawClientCall
- #open_server_stream(service : String, method : String, request_bytes : Bytes, metadata : Metadata) : RawServerStream
- #open_server_stream(service : String, method : String, request_bytes : Bytes, ctx : ClientContext) : RawServerStream
- #unary_call(service : String, method : String, request_body : Bytes, metadata : Metadata) : ResponseEnvelope
-
#unary_call(service : String, method : String, request_body : Bytes, ctx : ClientContext) : ResponseEnvelope
Custom transports may override the context-aware overloads to observe cancellation after submission.
Instance Method Detail
abstract
def open_bidi_stream_live(service : String, method : String, metadata : Metadata, send_queue_size : Int32) : RawBidiCall
#
def open_bidi_stream_live(service : String, method : String, ctx : ClientContext, send_queue_size : Int32) : RawBidiCall
#
abstract
def open_client_stream_live(service : String, method : String, metadata : Metadata, send_queue_size : Int32) : RawClientCall
#
def open_client_stream_live(service : String, method : String, ctx : ClientContext, send_queue_size : Int32) : RawClientCall
#
abstract
def open_server_stream(service : String, method : String, request_bytes : Bytes, metadata : Metadata) : RawServerStream
#
def open_server_stream(service : String, method : String, request_bytes : Bytes, ctx : ClientContext) : RawServerStream
#
abstract
def unary_call(service : String, method : String, request_body : Bytes, metadata : Metadata) : ResponseEnvelope
#
def unary_call(service : String, method : String, request_body : Bytes, ctx : ClientContext) : ResponseEnvelope
#
Custom transports may override the context-aware overloads to observe cancellation after submission. Existing transports remain compatible.