ClientChannel class Null safety

A channel to a virtual gRPC endpoint.

For each RPC, the channel picks a Http2ClientConnection to dispatch the call. RPCs on the same channel may be sent to different connections, depending on load balancing settings.

Inheritance
Implementers

Constructors

ClientChannel(Object host, {int port = 443, ChannelOptions options = const ChannelOptions()})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
host Object
Starts the Server with the given options. address can be either a String or an InternetAddress, in the latter case it can be a Unix Domain Socket address.
final
options ChannelOptions
final
port int
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createCall<Q, R>(ClientMethod<Q, R> method, Stream<Q> requests, CallOptions options) ClientCall<Q, R>
Initiates a new RPC on this connection.
inherited
createConnection() ClientConnection
override
getConnection() Future<ClientConnection>
Returns a connection to this Channel's RPC endpoint. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
shutdown() Future<void>
Shuts down this channel. [...]
inherited
terminate() Future<void>
Terminates this channel. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited