Instance Methods | List of all members
GRPCTransportManager Class Reference

#import <GRPCTransport+Private.h>

Inheritance diagram for GRPCTransportManager:
Inheritance graph
[legend]

Instance Methods

(void) - forwardPreviousInterceptorCloseWithTrailingMetadata:error:
 
(void) - forwardPreviousInterceptorDidWriteData
 
(void) - forwardPreviousInterceptorWithData:
 
(void) - forwardPreviousInterceptorWithInitialMetadata:
 
(instancetype) - initWithTransportID:previousInterceptor:
 
(void) - shutDown
 
- Instance Methods inherited from <GRPCInterceptorInterface>
(void) - cancel
 
(void) - finish
 
(void) - receiveNextMessages:
 
(void) - startWithRequestOptions:callOptions:
 
(void) - writeData:
 

Additional Inherited Members

- Properties inherited from <GRPCDispatchable>
dispatch_queue_t dispatchQueue
 

Detailed Description

GRPCTransportManager is a helper class to forward messages between the last interceptor and the transport instance.

All methods except the initializer of the class can only be called on the manager's dispatch queue. Since the manager's dispatch queue is the same as the transport's dispatch queue, it is also safe to call the manager's methods in the corresponding transport instance's methods that implement GRPCInterceptorInterface.

When a transport instance is shutting down, it must call -shutDown method of its associated transport manager for proper clean-up.

Definition at line 50 of file GRPCTransport+Private.h.

Method Documentation

◆ forwardPreviousInterceptorCloseWithTrailingMetadata:error:

- (void) forwardPreviousInterceptorCloseWithTrailingMetadata: (nullable NSDictionary *)  trailingMetadata
error: (nullable NSError *)  error 

Forward call close and trailing metadata to the previous interceptor in the interceptor chain

◆ forwardPreviousInterceptorDidWriteData

- (void) forwardPreviousInterceptorDidWriteData

Forward write completion to the previous interceptor in the interceptor chain

◆ forwardPreviousInterceptorWithData:

- (void) forwardPreviousInterceptorWithData: (nullable id data

Forward a received message to the previous interceptor in the interceptor chain

◆ forwardPreviousInterceptorWithInitialMetadata:

- (void) forwardPreviousInterceptorWithInitialMetadata: (nullable NSDictionary *)  initialMetadata

Forward initial metadata to the previous interceptor in the interceptor chain

◆ initWithTransportID:previousInterceptor:

- (instancetype) initWithTransportID: (GRPCTransportID transportID
previousInterceptor: (id< GRPCResponseHandler >)  previousInterceptor 

◆ shutDown

- (void) shutDown

Notify the manager that the transport has shut down and the manager should release references to its response handler and stop forwarding requests/responses.


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


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