how to add custom ClientInterceptor when i use zeebe-client-java,when i add custom ClientInterceptor,throw exception
Caused by: io.zeebe.client.api.command.ClientStatusException: deadline exceeded after 9.846996700s. [buffered_nanos=9866858000, waiting_for_connection]
clientBuilder.withInterceptors(new CustomInterceptor());
import io.grpc.CallOptions;
import io.grpc.Channel;
import io.grpc.ClientCall;
import io.grpc.ClientInterceptor;
import io.grpc.MethodDescriptor;
public class CustomInterceptor implements ClientInterceptor{
@Override
public <ReqT, RespT> ClientCall<ReqT, RespT> interceptCall(MethodDescriptor<ReqT, RespT> method, CallOptions callOptions,
Channel next) {
// TODO Auto-generated method stub
return next.newCall(method, callOptions);
}
}