#import <GRPCTransport.h>
Instance Methods | |
(id< GRPCTransportFactory >) | - getTransportFactoryWithID: |
(void) | - registerTransportWithID:factory: |
Class Methods | |
(instancetype) | + sharedInstance |
The registry of transport implementations.
Definition at line 63 of file GRPCTransport.h.
- (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).
- (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.
+ (instancetype) sharedInstance |