Class DurableTaskGrpcClientBuilder


  • public final class DurableTaskGrpcClientBuilder
    extends java.lang.Object
    Builder class for constructing new DurableTaskClient objects that communicate with a sidecar process over gRPC.
    • Constructor Detail

      • DurableTaskGrpcClientBuilder

        public DurableTaskGrpcClientBuilder()
    • Method Detail

      • grpcChannel

        public DurableTaskGrpcClientBuilder grpcChannel​(io.grpc.Channel channel)
        Sets the gRPC channel to use for communicating with the sidecar process.

        This builder method allows you to provide your own gRPC channel for communicating with the Durable Task sidecar endpoint. Channels provided using this method won't be closed when the client is closed. Rather, the caller remains responsible for shutting down the channel after disposing the client.

        If not specified, a gRPC channel will be created automatically for each constructed DurableTaskClient.

        Parameters:
        channel - the gRPC channel to use
        Returns:
        this builder object
      • port

        public DurableTaskGrpcClientBuilder port​(int port)
        Sets the gRPC endpoint port to connect to. If not specified, the default Durable Task port number will be used.
        Parameters:
        port - the gRPC endpoint port to connect to
        Returns:
        this builder object