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 ManagedChannelFactoryCreates aManagedChannelrelying on theManagedChannelBuilderto choose the channel type.static ManagedChannelFactoryCreates aManagedChannelFactorybacked by anEpollDomainSocketChannelif the address is aDomainSocketAddress.static ManagedChannelFactoryCreates aManagedChannelusing an in-process channel.org.apache.beam.vendor.grpc.v1p69p0.io.grpc.ManagedChannelforDescriptor(org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor) Returns aManagedChannelFactorylike 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 aManagedChannelFactorylike this one, but which will apply the providedClientInterceptorsto any channel it creates.
-
Method Details
-
createDefault
Creates aManagedChannelrelying on theManagedChannelBuilderto choose the channel type. -
createEpoll
Creates aManagedChannelFactorybacked by anEpollDomainSocketChannelif the address is aDomainSocketAddress. Otherwise creates aManagedChannelbacked by anEpollSocketChannel. -
createInProcess
Creates aManagedChannelusing 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 aManagedChannelFactorylike this one, but which will apply the providedClientInterceptorsto any channel it creates. -
withDirectExecutor
Returns aManagedChannelFactorylike this one, but will construct the channel to use the direct executor.
-