GRPC Objective-C  1.26.0
Instance Methods
GRPCTransportManager Class Reference

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

#import <GRPCTransport+Private.h>

Instance Methods

(instancetype) - initWithTransportID:previousInterceptor:
 
(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. More...
 
(void) - forwardPreviousInterceptorWithInitialMetadata:
 Forward initial metadata to the previous interceptor in the interceptor chain. More...
 
(void) - forwardPreviousInterceptorWithData:
 Forward a received message to the previous interceptor in the interceptor chain. More...
 
(void) - forwardPreviousInterceptorCloseWithTrailingMetadata:error:
 Forward call close and trailing metadata to the previous interceptor in the interceptor chain. More...
 
(void) - forwardPreviousInterceptorDidWriteData
 Forward write completion to the previous interceptor in the interceptor chain. More...
 
- Instance Methods inherited from <GRPCInterceptorInterface>
(void) - startWithRequestOptions:callOptions:
 To start the call. More...
 
(void) - writeData:
 To write data to the call. More...
 
(void) - finish
 To finish the stream of requests. More...
 
(void) - cancel
 To cancel the call. More...
 
(void) - receiveNextMessages:
 To indicate the call that the previous interceptor is ready to receive more messages. More...
 

Additional Inherited Members

- Properties inherited from <GRPCDispatchable>
dispatch_queue_t dispatchQueue
 The dispatch queue where the object's methods should be run on. More...
 

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.

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: