All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.grpc.runtime.GrpcClientInterceptorContainer Maven / Gradle / Ivy

There is a newer version: 3.15.1
Show newest version
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());
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy