public final class RealApolloInterceptorChain extends java.lang.Object implements ApolloInterceptorChain
| Constructor and Description |
|---|
RealApolloInterceptorChain(java.util.List<ApolloInterceptor> interceptors) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes of the resources which are no longer required.
|
void |
proceedAsync(ApolloInterceptor.InterceptorRequest request,
java.util.concurrent.Executor dispatcher,
ApolloInterceptor.CallBack callBack)
Passes the control over to the next
ApolloInterceptor in the responsibility chain and immediately exits as
this is a non blocking call. |
public RealApolloInterceptorChain(@NotNull
java.util.List<ApolloInterceptor> interceptors)
public void proceedAsync(@NotNull
ApolloInterceptor.InterceptorRequest request,
@NotNull
java.util.concurrent.Executor dispatcher,
@NotNull
ApolloInterceptor.CallBack callBack)
ApolloInterceptorChainApolloInterceptor in the responsibility chain and immediately exits as
this is a non blocking call. In order to receive the results back, pass in a callback which will handle the
received response or error.proceedAsync in interface ApolloInterceptorChainrequest - outgoing request object.dispatcher - the Executor which dispatches the calls asynchronously.callBack - the callback which will handle the response or a failure exception.public void dispose()
ApolloInterceptorChaindispose in interface ApolloInterceptorChain