#import <GRPCTransport+Private.h>
Instance Methods | |
(void) | - forwardPreviousInterceptorCloseWithTrailingMetadata:error: |
(void) | - forwardPreviousInterceptorDidWriteData |
(void) | - forwardPreviousInterceptorWithData: |
(void) | - forwardPreviousInterceptorWithInitialMetadata: |
(instancetype) | - initWithTransportID:previousInterceptor: |
(void) | - shutDown |
![]() | |
(void) | - cancel |
(void) | - finish |
(void) | - receiveNextMessages: |
(void) | - startWithRequestOptions:callOptions: |
(void) | - writeData: |
Additional Inherited Members | |
![]() | |
dispatch_queue_t | dispatchQueue |
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.
- (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.