public interface ApolloInterceptorChain
ApolloInterceptor .| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes of the resources which are no longer required.
|
ApolloInterceptor.InterceptorResponse |
proceed()
Passes the control over to the next
ApolloInterceptor in the responsibility chain and blocks until the
ApolloInterceptor.InterceptorResponse is received or is an error. |
void |
proceedAsync(java.util.concurrent.ExecutorService 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. |
@Nonnull ApolloInterceptor.InterceptorResponse proceed() throws ApolloException
ApolloInterceptor in the responsibility chain and blocks until the
ApolloInterceptor.InterceptorResponse is received or is an error.ApolloException - If an unexpected error occurs.void proceedAsync(@Nonnull
java.util.concurrent.ExecutorService dispatcher,
@Nonnull
ApolloInterceptor.CallBack callBack)
ApolloInterceptor 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.dispatcher - the ExecutorService which dispatches the calls asynchronously.callBack - the callback which will handle the response or a failure exception.void dispose()