GRPC Objective-C
1.39.1
|
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... | |
![]() | |
(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 | |
![]() | |
dispatch_queue_t | dispatchQueue |
The dispatch queue where the object's methods should be run on. More... | |
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.
- (void) forwardPreviousInterceptorCloseWithTrailingMetadata: | (nullable NSDictionary *) | trailingMetadata | |
error: | (nullable NSError *) | error | |
Forward call close and trailing metadata to the previous interceptor in the interceptor chain.
- (void) forwardPreviousInterceptorDidWriteData |
Forward write completion to the previous interceptor in the interceptor chain.
- (void) forwardPreviousInterceptorWithData: | (nullable id) | data |
Forward a received message to the previous interceptor in the interceptor chain.
- (void) forwardPreviousInterceptorWithInitialMetadata: | (nullable NSDictionary *) | initialMetadata |
Forward initial metadata to the previous interceptor in the interceptor chain.
- (instancetype) initWithTransportID: | (GRPCTransportID) | transportID | |
previousInterceptor: | (id< GRPCResponseHandler >) | 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.