c

akka.grpc.internal

ScalaUnaryRequestBuilder

final class ScalaUnaryRequestBuilder[I, O] extends SingleResponseRequestBuilder[I, O] with MetadataOperations[ScalaUnaryRequestBuilder[I, O]]

INTERNAL API

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

Instance Constructors

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

Value Members

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

    Invoke the gRPC method with the additional metadata added

    Invoke the gRPC method with the additional metadata added

    Definition Classes
    ScalaUnaryRequestBuilderSingleResponseRequestBuilder
  5. def invokeWithMetadata(request: I): Future[GrpcSingleResponse[O]]

    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
    ScalaUnaryRequestBuilderSingleResponseRequestBuilder
  6. def setDeadline(deadline: Duration): SingleResponseRequestBuilder[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
    ScalaUnaryRequestBuilderSingleResponseRequestBuilder
  7. def withHeaders(headers: MetadataImpl): ScalaUnaryRequestBuilder[I, O]