Instance Methods | Class Methods | List of all members
GRPCTransportRegistry Class Reference

#import <GRPCTransport.h>

Inheritance diagram for GRPCTransportRegistry:
Inheritance graph
[legend]

Instance Methods

(id< GRPCTransportFactory >) - getTransportFactoryWithID:
 
(void) - registerTransportWithID:factory:
 

Class Methods

(instancetype) + sharedInstance
 

Detailed Description

The registry of transport implementations.

Definition at line 63 of file GRPCTransport.h.

Method Documentation

◆ getTransportFactoryWithID:

- (id<GRPCTransportFactory>) getTransportFactoryWithID: (GRPCTransportID transportID

Get a transport implementation's factory by its transport id. If the transport id was not registered with the registry, the default transport factory (core + secure) is returned. If the default transport does not exist, an exception is thrown.

Provided by category GRPCTransportRegistry(Private).

◆ registerTransportWithID:factory:

- (void) registerTransportWithID: (GRPCTransportID transportID
factory: (id< GRPCTransportFactory >)  factory 

Register a transport implementation with the registry. All transport implementations to be used in a process must register with the registry on process start-up in its +load: class method. Parameter transportID is the identifier of the implementation, and factory is the factory object to create the corresponding transport instance.

◆ sharedInstance

+ (instancetype) sharedInstance

The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:46