public class ManagedChannelFactory
extends java.lang.Object
ManagedChannel
instances.Modifier and Type | Method and Description |
---|---|
static ManagedChannelFactory |
createDefault()
Creates a
ManagedChannel relying on the ManagedChannelBuilder to choose the
channel type. |
static ManagedChannelFactory |
createEpoll()
Creates a
ManagedChannelFactory backed by an EpollDomainSocketChannel if the
address is a DomainSocketAddress . |
static ManagedChannelFactory |
createInProcess()
Creates a
ManagedChannel using an in-process channel. |
org.apache.beam.vendor.grpc.v1p60p1.io.grpc.ManagedChannel |
forDescriptor(org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor) |
ManagedChannelFactory |
withDirectExecutor()
Returns a
ManagedChannelFactory like this one, but will construct the channel to use
the direct executor. |
ManagedChannelFactory |
withInterceptors(java.util.List<org.apache.beam.vendor.grpc.v1p60p1.io.grpc.ClientInterceptor> interceptors)
Returns a
ManagedChannelFactory like this one, but which will apply the provided ClientInterceptors to any channel it creates. |
public static ManagedChannelFactory createDefault()
ManagedChannel
relying on the ManagedChannelBuilder
to choose the
channel type.public static ManagedChannelFactory createEpoll()
ManagedChannelFactory
backed by an EpollDomainSocketChannel
if the
address is a DomainSocketAddress
. Otherwise creates a ManagedChannel
backed by
an EpollSocketChannel
.public static ManagedChannelFactory createInProcess()
ManagedChannel
using an in-process channel.public org.apache.beam.vendor.grpc.v1p60p1.io.grpc.ManagedChannel forDescriptor(org.apache.beam.model.pipeline.v1.Endpoints.ApiServiceDescriptor apiServiceDescriptor)
public ManagedChannelFactory withInterceptors(java.util.List<org.apache.beam.vendor.grpc.v1p60p1.io.grpc.ClientInterceptor> interceptors)
ManagedChannelFactory
like this one, but which will apply the provided ClientInterceptors
to any channel it creates.public ManagedChannelFactory withDirectExecutor()
ManagedChannelFactory
like this one, but will construct the channel to use
the direct executor.