Interface GrpcSenderProvider
public interface GrpcSenderProvider
A service provider interface (SPI) for providing
GrpcSender
s backed by different client
libraries.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescription<T extends Marshaler>
GrpcSender<T> createSender
(URI endpoint, String endpointPath, Compressor compressor, long timeoutNanos, long connectTimeoutNanos, Supplier<Map<String, List<String>>> headersSupplier, Object managedChannel, Supplier<BiFunction<io.grpc.Channel, String, MarshalerServiceStub<T, ?, ?>>> stubFactory, RetryPolicy retryPolicy, SSLContext sslContext, X509TrustManager trustManager) Returns aGrpcSender
configured with the provided parameters.
-
Method Details
-
createSender
<T extends Marshaler> GrpcSender<T> createSender(URI endpoint, String endpointPath, @Nullable Compressor compressor, long timeoutNanos, long connectTimeoutNanos, Supplier<Map<String, List<String>>> headersSupplier, @Nullable Object managedChannel, Supplier<BiFunction<io.grpc.Channel, String, MarshalerServiceStub<T, ?, ?>>> stubFactory, @Nullable RetryPolicy retryPolicy, @Nullable SSLContext sslContext, @Nullable X509TrustManager trustManager) Returns aGrpcSender
configured with the provided parameters.
-