#import <GRPCInterceptor.h>
Instance Methods | |
(void) | - cancelNextInterceptor |
(void) | - finishNextInterceptor |
(void) | - forwardPreviousInterceptorCloseWithTrailingMetadata:error: |
(void) | - forwardPreviousInterceptorDidWriteData |
(void) | - forwardPreviousInterceptorWithData: |
(void) | - forwardPreviousInterceptorWithInitialMetadata: |
(nullable instancetype) | - initWithFactories:previousInterceptor:transportID: |
(instancetype) | - NS_UNAVAILABLE |
(void) | - receiveNextInterceptorMessages: |
(void) | - shutDown |
(void) | - startNextInterceptorWithRequest:callOptions: |
(void) | - writeNextInterceptorWithData: |
![]() | |
(void) | - cancel |
(void) | - finish |
(void) | - receiveNextMessages: |
(void) | - startWithRequestOptions:callOptions: |
(void) | - writeData: |
![]() | |
(void) | - didCloseWithTrailingMetadata:error: |
(void) | - didReceiveData: |
(void) | - didReceiveInitialMetadata: |
(void) | - didReceiveRawMessage: |
(void) | - didWriteData |
Class Methods | |
(instancetype) | + NS_UNAVAILABLE |
Additional Inherited Members | |
![]() | |
dispatch_queue_t | dispatchQueue |
GRPCInterceptorManager is a helper class to forward messages between the interceptors. The interceptor manager object retains reference to the next and previous interceptor object in the interceptor chain, and forward corresponding events to them.
All methods except the initializer of the class can only be called on the manager's dispatch queue. Since the manager's dispatch queue targets corresponding interceptor's dispatch queue, it is also safe to call the manager's methods in the corresponding interceptor instance's methods that implement GRPCInterceptorInterface.
When an interceptor is shutting down, it must invoke -shutDown method of its corresponding manager so that references to other interceptors can be released and proper clean-up is made.
Definition at line 187 of file GRPCInterceptor.h.
- (void) cancelNextInterceptor |
Notify the next interceptor in the chain to cancel the call
- (void) finishNextInterceptor |
Notify the next interceptor in the chain to finish the call
- (void) forwardPreviousInterceptorCloseWithTrailingMetadata: | (nullable NSDictionary *) | trailingMetadata | |
error: | (nullable NSError *) | error | |
Forward call close and trailing metadata to the previous interceptor in the chain
- (void) forwardPreviousInterceptorDidWriteData |
Forward write completion to the previous interceptor in the chain
- (void) forwardPreviousInterceptorWithData: | (nullable id) | data |
Forward a received message to the previous interceptor in the chain
- (void) forwardPreviousInterceptorWithInitialMetadata: | (nullable NSDictionary *) | initialMetadata |
Forward initial metadata to the previous interceptor in the chain
- (nullable instancetype) initWithFactories: | (nullable NSArray< id< GRPCInterceptorFactory >> *) | factories | |
previousInterceptor: | (nullable id< GRPCResponseHandler >) | previousInterceptor | |
transportID: | (GRPCTransportID) | transportID | |
+ (instancetype) NS_UNAVAILABLE |
- (instancetype) NS_UNAVAILABLE |
- (void) receiveNextInterceptorMessages: | (NSUInteger) | numberOfMessages |
Notify the next interceptor in the chain to receive more messages
- (void) shutDown |
Notify the manager that the interceptor has shut down and the manager should release references to other interceptors and stop forwarding requests/responses.
- (void) startNextInterceptorWithRequest: | (GRPCRequestOptions *) | requestOptions | |
callOptions: | (GRPCCallOptions *) | callOptions | |
Notify the next interceptor in the chain to start the call and pass arguments
- (void) writeNextInterceptorWithData: | (id) | data |
Pass a message to be sent to the next interceptor in the chain