Package org.apache.beam.sdk.fn.channel
Class ManagedChannelFactory
java.lang.Object
org.apache.beam.sdk.fn.channel.ManagedChannelFactory
A Factory which creates
ManagedChannel
instances.-
Method Summary
Modifier and TypeMethodDescriptionstatic ManagedChannelFactory
Creates aManagedChannel
relying on theManagedChannelBuilder
to choose the channel type.static ManagedChannelFactory
Creates aManagedChannelFactory
backed by anEpollDomainSocketChannel
if the address is aDomainSocketAddress
.static ManagedChannelFactory
Creates aManagedChannel
using an in-process channel.org.apache.beam.vendor.grpc.v1p69p0.io.grpc.ManagedChannel
forDescriptor
(org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor) Returns aManagedChannelFactory
like this one, but will construct the channel to use the direct executor.withInterceptors
(List<org.apache.beam.vendor.grpc.v1p69p0.io.grpc.ClientInterceptor> interceptors) Returns aManagedChannelFactory
like this one, but which will apply the providedClientInterceptors
to any channel it creates.
-
Method Details
-
createDefault
Creates aManagedChannel
relying on theManagedChannelBuilder
to choose the channel type. -
createEpoll
Creates aManagedChannelFactory
backed by anEpollDomainSocketChannel
if the address is aDomainSocketAddress
. Otherwise creates aManagedChannel
backed by anEpollSocketChannel
. -
createInProcess
Creates aManagedChannel
using an in-process channel. -
forDescriptor
public org.apache.beam.vendor.grpc.v1p69p0.io.grpc.ManagedChannel forDescriptor(org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor) -
withInterceptors
public ManagedChannelFactory withInterceptors(List<org.apache.beam.vendor.grpc.v1p69p0.io.grpc.ClientInterceptor> interceptors) Returns aManagedChannelFactory
like this one, but which will apply the providedClientInterceptors
to any channel it creates. -
withDirectExecutor
Returns aManagedChannelFactory
like this one, but will construct the channel to use the direct executor.
-