class documentation
class _ServiceAddressChannel: (source)
Constructor: _ServiceAddressChannel(channel, service_name)
Resolve and retain one operation-service address on the SDK loop.
| Method | __init__ |
Initialize a source-service channel. |
| Method | unary |
Return a unary callable routed through the source service. |
| Method | _resolve |
Resolve the source address once and reuse it for this adapter. |
| Instance Variable | _channel |
Undocumented |
| Instance Variable | _resolved |
Undocumented |
| Instance Variable | _service |
Undocumented |
def unary_unary(self, method:
str, request_serializer: SerializingFunction | None = None, response_deserializer: DeserializingFunction | None = None) -> UnaryUnaryMultiCallable[ Any, Any]:
(source)
¶
Return a unary callable routed through the source service.
| Parameters | |
method:str | Fully qualified gRPC method name. |
requestSerializingFunction | None | Optional request serializer. |
responseDeserializingFunction | None | Optional response deserializer. |
| Returns | |
UnaryUnaryMultiCallable[ | Callable that creates a cross-loop unary call. |
Resolve the source address once and reuse it for this adapter.
Calls reach this method only from the parent channel's SDK event loop, so no additional lock is needed. Failed resolution is not cached and a later operation call may retry it.
| Returns | |
str | Stable transport address for this operation-service adapter. |