io.quarkus.grpc.runtime.GrpcClientInterceptorContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-grpc Show documentation
Show all versions of quarkus-grpc Show documentation
Serve and consume gRPC services
package io.quarkus.grpc.runtime;
import java.util.List;
import java.util.Set;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import io.grpc.ClientInterceptor;
@ApplicationScoped
public class GrpcClientInterceptorContainer {
@Inject
ClientInterceptorStorage interceptorStorage;
public List getSortedPerServiceInterceptors(Set interceptorClasses) {
return Interceptors.getSortedPerServiceInterceptors(interceptorStorage.getPerClientInterceptors(interceptorClasses));
}
public List getSortedGlobalInterceptors() {
return Interceptors.getSortedGlobalInterceptors(interceptorStorage.getGlobalInterceptors());
}
}