c

akka.grpc.internal

ScalaBidirectionalStreamingRequestBuilder

final class ScalaBidirectionalStreamingRequestBuilder[I, O] extends StreamResponseRequestBuilder[Source[I, NotUsed], O] with MetadataOperations[ScalaBidirectionalStreamingRequestBuilder[I, O]]

INTERNAL API

Annotations
@InternalApi()
Source
RequestBuilderImpl.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaBidirectionalStreamingRequestBuilder
  2. MetadataOperations
  3. StreamResponseRequestBuilder
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ScalaBidirectionalStreamingRequestBuilder(descriptor: MethodDescriptor[I, O], channel: InternalChannel, defaultOptions: CallOptions, settings: GrpcClientSettings)(implicit ec: ExecutionContext)
    Annotations
    @InternalStableApi()
  2. new ScalaBidirectionalStreamingRequestBuilder(descriptor: MethodDescriptor[I, O], channel: InternalChannel, defaultOptions: CallOptions, settings: GrpcClientSettings, headers: MetadataImpl)(implicit ec: ExecutionContext)
  3. new ScalaBidirectionalStreamingRequestBuilder(descriptor: MethodDescriptor[I, O], fqMethodName: String, channel: InternalChannel, defaultOptions: CallOptions, settings: GrpcClientSettings)(implicit ec: ExecutionContext)
    Annotations
    @deprecated @InternalStableApi()
    Deprecated

    (Since version 1.1.0) fqMethodName was removed since it can be derived from the descriptor

Value Members

  1. def addHeader(key: String, value: ByteString): ScalaBidirectionalStreamingRequestBuilder[I, O]
    Definition Classes
    MetadataOperations
  2. def addHeader(key: String, value: String): ScalaBidirectionalStreamingRequestBuilder[I, O]
    Definition Classes
    MetadataOperations
  3. val headers: MetadataImpl
  4. def invoke(request: Source[I, NotUsed]): Source[O, NotUsed]

    Invoke the gRPC method with the additional metadata added

    Invoke the gRPC method with the additional metadata added

    FIXME for streaming response this doesn't really make sense, left it to keep parity with single response but maybe it should go

    Definition Classes
    ScalaBidirectionalStreamingRequestBuilderStreamResponseRequestBuilder
  5. def invokeWithMetadata(source: Source[I, NotUsed]): Source[O, Future[GrpcResponseMetadata]]

    Invoke the gRPC method with the additional metadata added and provide access to response metadata

    Invoke the gRPC method with the additional metadata added and provide access to response metadata

    Definition Classes
    ScalaBidirectionalStreamingRequestBuilderStreamResponseRequestBuilder
  6. def setDeadline(deadline: Duration): ScalaBidirectionalStreamingRequestBuilder[I, O]

    Set the deadline for this call

    Set the deadline for this call

    returns

    A new request builder, that will use the supplied deadline when invoked

    Definition Classes
    ScalaBidirectionalStreamingRequestBuilderStreamResponseRequestBuilder
  7. def withHeaders(headers: MetadataImpl): ScalaBidirectionalStreamingRequestBuilder[I, O]