object GrpcMarshalling
- Source
- GrpcMarshalling.scala
- Alphabetic
- By Inheritance
- GrpcMarshalling
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def marshal[T](e: T = Identity, eHandler: (ActorSystem) => PartialFunction[Throwable, Trailers] = GrpcExceptionHandler.defaultMapper)(implicit m: ProtobufSerializer[T], writer: GrpcProtocolWriter, system: ClassicActorSystemProvider): HttpResponse
- 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()
- def marshalStream[T](e: Source[T, NotUsed], eHandler: (ActorSystem) => PartialFunction[Throwable, Trailers] = GrpcExceptionHandler.defaultMapper)(implicit m: ProtobufSerializer[T], writer: GrpcProtocolWriter, system: ClassicActorSystemProvider): HttpResponse
- 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()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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.
- def negotiated[T](req: HttpRequest, f: (GrpcProtocolReader, GrpcProtocolWriter) => Future[T]): Option[Future[T]]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unmarshal[T](entity: HttpEntity)(implicit u: ProtobufSerializer[T], mat: Materializer, reader: GrpcProtocolReader): Future[T]
- def unmarshal[T](data: Source[ByteString, Any])(implicit u: ProtobufSerializer[T], mat: Materializer, reader: GrpcProtocolReader): Future[T]
- def unmarshal[T](req: HttpRequest)(implicit u: ProtobufSerializer[T], mat: Materializer): Future[T]
- def unmarshalStream[T](entity: HttpEntity)(implicit u: ProtobufSerializer[T], mat: Materializer, reader: GrpcProtocolReader): Future[Source[T, NotUsed]]
- def unmarshalStream[T](data: Source[ByteString, Any])(implicit u: ProtobufSerializer[T], mat: Materializer, reader: GrpcProtocolReader): Future[Source[T, NotUsed]]
- def unmarshalStream[T](req: HttpRequest)(implicit u: ProtobufSerializer[T], mat: Materializer): Future[Source[T, NotUsed]]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withServerDeadline(request: HttpRequest, response: Future[HttpResponse])(implicit system: ClassicActorSystemProvider, writer: GrpcProtocolWriter, ec: ExecutionContext): Future[HttpResponse]
INTERNAL API
INTERNAL API
Bounds
responseby the deadline the client asked for ingrpc-timeout.If
responsehas not completed by the deadline, aDEADLINE_EXCEEDEDresponse is sent instead. The handler'sFuturecannot be cancelled, so the handler still runs to completion, but its result is discarded.If
responsecompletes 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 withDEADLINE_EXCEEDEDtrailers 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
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)