o

org.apache.pekko.grpc.scaladsl

GrpcMarshalling

object GrpcMarshalling

Source
GrpcMarshalling.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GrpcMarshalling
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def marshal[T](e: T = Identity, eHandler: (ActorSystem) => PartialFunction[Throwable, Trailers] = GrpcExceptionHandler.defaultMapper)(implicit m: ProtobufSerializer[T], writer: GrpcProtocolWriter, system: ClassicActorSystemProvider): HttpResponse
  12. def marshalRequest[T](uri: Uri, e: T, eHandler: (ActorSystem) => PartialFunction[Throwable, Trailers] = GrpcExceptionHandler.defaultMapper)(implicit m: ProtobufSerializer[T], writer: GrpcProtocolWriter, system: ClassicActorSystemProvider): HttpRequest
    Annotations
    @InternalApi()
  13. def marshalStream[T](e: Source[T, NotUsed], eHandler: (ActorSystem) => PartialFunction[Throwable, Trailers] = GrpcExceptionHandler.defaultMapper)(implicit m: ProtobufSerializer[T], writer: GrpcProtocolWriter, system: ClassicActorSystemProvider): HttpResponse
  14. def marshalStreamRequest[T](uri: Uri, e: Source[T, NotUsed], eHandler: (ActorSystem) => PartialFunction[Throwable, Trailers] = GrpcExceptionHandler.defaultMapper)(implicit m: ProtobufSerializer[T], writer: GrpcProtocolWriter, system: ClassicActorSystemProvider): HttpRequest
    Annotations
    @InternalApi()
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def negotiated[T](req: HttpRequest, settings: GrpcServerSettings, f: (GrpcProtocolReader, GrpcProtocolWriter) => Future[T]): Option[Future[T]]

    Negotiates the gRPC protocol for a server handler with the given settings.

    Negotiates the gRPC protocol for a server handler with the given settings.

    The settings carry the handler-scoped configuration (currently the maximum inbound message size), so that further configuration can be added without another entry point here.

  17. def negotiated[T](req: HttpRequest, f: (GrpcProtocolReader, GrpcProtocolWriter) => Future[T]): Option[Future[T]]
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. def unmarshal[T](entity: HttpEntity)(implicit u: ProtobufSerializer[T], mat: Materializer, reader: GrpcProtocolReader): Future[T]
  23. def unmarshal[T](data: Source[ByteString, Any])(implicit u: ProtobufSerializer[T], mat: Materializer, reader: GrpcProtocolReader): Future[T]
  24. def unmarshal[T](req: HttpRequest)(implicit u: ProtobufSerializer[T], mat: Materializer): Future[T]
  25. def unmarshalStream[T](entity: HttpEntity)(implicit u: ProtobufSerializer[T], mat: Materializer, reader: GrpcProtocolReader): Future[Source[T, NotUsed]]
  26. def unmarshalStream[T](data: Source[ByteString, Any])(implicit u: ProtobufSerializer[T], mat: Materializer, reader: GrpcProtocolReader): Future[Source[T, NotUsed]]
  27. def unmarshalStream[T](req: HttpRequest)(implicit u: ProtobufSerializer[T], mat: Materializer): Future[Source[T, NotUsed]]
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. def withServerDeadline(request: HttpRequest, response: Future[HttpResponse])(implicit system: ClassicActorSystemProvider, writer: GrpcProtocolWriter, ec: ExecutionContext): Future[HttpResponse]

    INTERNAL API

    INTERNAL API

    Bounds response by the deadline the client asked for in grpc-timeout.

    If response has not completed by the deadline, a DEADLINE_EXCEEDED response is sent instead. The handler's Future cannot be cancelled, so the handler still runs to completion, but its result is discarded.

    If response completes in time with a streamed (chunked) body, the rest of the body is bounded by what remains of the deadline: on expiry the body ends with DEADLINE_EXCEEDED trailers and the stream producing it is cancelled, which stops the server-side work.

    The deadline's timer is cancelled as soon as it is no longer needed. A request with no grpc-timeout, or an unparseable one, is left unbounded.

    Annotations
    @InternalApi()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped