Package org.apache.beam.sdk.fn.channel
Class ManagedChannelFactory
- java.lang.Object
-
- org.apache.beam.sdk.fn.channel.ManagedChannelFactory
-
public class ManagedChannelFactory extends java.lang.ObjectA Factory which createsManagedChannelinstances.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ManagedChannelFactorycreateDefault()Creates aManagedChannelrelying on theManagedChannelBuilderto choose the channel type.static ManagedChannelFactorycreateEpoll()Creates aManagedChannelFactorybacked by anEpollDomainSocketChannelif the address is aDomainSocketAddress.static ManagedChannelFactorycreateInProcess()Creates aManagedChannelusing an in-process channel.org.apache.beam.vendor.grpc.v1p48p1.io.grpc.ManagedChannelforDescriptor(org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor)ManagedChannelFactorywithDirectExecutor()Returns aManagedChannelFactorylike this one, but will construct the channel to use the direct executor.ManagedChannelFactorywithInterceptors(java.util.List<org.apache.beam.vendor.grpc.v1p48p1.io.grpc.ClientInterceptor> interceptors)Returns aManagedChannelFactorylike this one, but which will apply the providedClientInterceptorsto any channel it creates.
-
-
-
Method Detail
-
createDefault
public static ManagedChannelFactory createDefault()
Creates aManagedChannelrelying on theManagedChannelBuilderto choose the channel type.
-
createEpoll
public static ManagedChannelFactory createEpoll()
Creates aManagedChannelFactorybacked by anEpollDomainSocketChannelif the address is aDomainSocketAddress. Otherwise creates aManagedChannelbacked by anEpollSocketChannel.
-
createInProcess
public static ManagedChannelFactory createInProcess()
Creates aManagedChannelusing an in-process channel.
-
forDescriptor
public org.apache.beam.vendor.grpc.v1p48p1.io.grpc.ManagedChannel forDescriptor(org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor)
-
withInterceptors
public ManagedChannelFactory withInterceptors(java.util.List<org.apache.beam.vendor.grpc.v1p48p1.io.grpc.ClientInterceptor> interceptors)
Returns aManagedChannelFactorylike this one, but which will apply the providedClientInterceptorsto any channel it creates.
-
withDirectExecutor
public ManagedChannelFactory withDirectExecutor()
Returns aManagedChannelFactorylike this one, but will construct the channel to use the direct executor.
-
-