ServerStreamCaller<TRequest extends Object, TResponse extends Object> class
final
Server-stream caller: codecs → serialized; no codecs → zero-copy (zero-copy transport only). Sends one request, receives a response stream.
Constructors
-
ServerStreamCaller({required IRpcTransport transport, required String serviceName, required String methodName, IRpcCodec<
TRequest> ? requestCodec, IRpcCodec<TResponse> ? responseCodec, RpcContext? context, LogScope? logger}) - Creates a server-stream caller.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
responses
→ Stream<
RpcMessage< TResponse> > -
Response stream (completes when server finishes or on error).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
TRequest request) → Stream< TResponse> - Convenience helper to send a request and yield responses.
-
close(
) → Future< void> - Closes the caller and releases resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
TRequest request) → Future< void> - Sends the single request; may be called only once.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited