GRPC Objective-C  1.26.0
Instance Methods | Class Methods
GRPCTransportRegistry Class Reference

The registry of transport implementations. More...

#import <GRPCTransport.h>

Instance Methods

(void) - registerTransportWithID:factory:
 Register a transport implementation with the registry. More...
 
(id< GRPCTransportFactory >) - getTransportFactoryWithID:
 Get a transport implementation's factory by its transport id. More...
 

Class Methods

(instancetype) + sharedInstance
 

Detailed Description

The registry of transport implementations.

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: