object EventProducerServiceHandler
- Annotations
- @ApiMayChange() @AkkaGrpcGenerated()
- Source
- EventProducerServiceHandler.scala
- Alphabetic
- By Inheritance
- EventProducerServiceHandler
- 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
- def apply(implementation: EventProducerService, prefix: String, eHandler: (ActorSystem) => PartialFunction[Throwable, Trailers])(implicit system: ClassicActorSystemProvider): (HttpRequest) => Future[HttpResponse]
Creates a
HttpRequest
toHttpResponse
handler that can be used in for exampleHttp().bindAndHandleAsync
for the generated partial function handler and ends withStatusCodes.NotFound
if the request is not matching.Creates a
HttpRequest
toHttpResponse
handler that can be used in for exampleHttp().bindAndHandleAsync
for the generated partial function handler and ends withStatusCodes.NotFound
if the request is not matching.Use
akka.grpc.scaladsl.ServiceHandler.concatOrNotFound
withEventProducerServiceHandler.partial
when combining several services.Registering a gRPC service under a custom prefix is not widely supported and strongly discouraged by the specification.
- def apply(implementation: EventProducerService, prefix: String)(implicit system: ClassicActorSystemProvider): (HttpRequest) => Future[HttpResponse]
Creates a
HttpRequest
toHttpResponse
handler that can be used in for exampleHttp().bindAndHandleAsync
for the generated partial function handler and ends withStatusCodes.NotFound
if the request is not matching.Creates a
HttpRequest
toHttpResponse
handler that can be used in for exampleHttp().bindAndHandleAsync
for the generated partial function handler and ends withStatusCodes.NotFound
if the request is not matching.Use
akka.grpc.scaladsl.ServiceHandler.concatOrNotFound
withEventProducerServiceHandler.partial
when combining several services.Registering a gRPC service under a custom prefix is not widely supported and strongly discouraged by the specification.
- def apply(implementation: EventProducerService, eHandler: (ActorSystem) => PartialFunction[Throwable, Trailers])(implicit system: ClassicActorSystemProvider): (HttpRequest) => Future[HttpResponse]
Creates a
HttpRequest
toHttpResponse
handler that can be used in for exampleHttp().bindAndHandleAsync
for the generated partial function handler and ends withStatusCodes.NotFound
if the request is not matching.Creates a
HttpRequest
toHttpResponse
handler that can be used in for exampleHttp().bindAndHandleAsync
for the generated partial function handler and ends withStatusCodes.NotFound
if the request is not matching.Use
akka.grpc.scaladsl.ServiceHandler.concatOrNotFound
withEventProducerServiceHandler.partial
when combining several services. - def apply(implementation: EventProducerService)(implicit system: ClassicActorSystemProvider): (HttpRequest) => Future[HttpResponse]
Creates a
HttpRequest
toHttpResponse
handler that can be used in for exampleHttp().bindAndHandleAsync
for the generated partial function handler and ends withStatusCodes.NotFound
if the request is not matching.Creates a
HttpRequest
toHttpResponse
handler that can be used in for exampleHttp().bindAndHandleAsync
for the generated partial function handler and ends withStatusCodes.NotFound
if the request is not matching.Use
akka.grpc.scaladsl.ServiceHandler.concatOrNotFound
withEventProducerServiceHandler.partial
when combining several services. - 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def partial(implementation: EventProducerService, prefix: String = EventProducerService.name, eHandler: (ActorSystem) => PartialFunction[Throwable, Trailers] = GrpcExceptionHandler.defaultMapper)(implicit system: ClassicActorSystemProvider): PartialFunction[HttpRequest, Future[HttpResponse]]
Creates a partial
HttpRequest
toHttpResponse
handler that can be combined with handlers of other services withakka.grpc.scaladsl.ServiceHandler.concatOrNotFound
and then used in for exampleHttp().bindAndHandleAsync
.Creates a partial
HttpRequest
toHttpResponse
handler that can be combined with handlers of other services withakka.grpc.scaladsl.ServiceHandler.concatOrNotFound
and then used in for exampleHttp().bindAndHandleAsync
.Use
EventProducerServiceHandler.apply
if the server is only handling one service.Registering a gRPC service under a custom prefix is not widely supported and strongly discouraged by the specification.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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 withServerReflection(implementation: EventProducerService)(implicit system: ClassicActorSystemProvider): (HttpRequest) => Future[HttpResponse]
Creates a
HttpRequest
toHttpResponse
handler that can be used in for exampleHttp().bindAndHandleAsync
for the generated partial function handler.Creates a
HttpRequest
toHttpResponse
handler that can be used in for exampleHttp().bindAndHandleAsync
for the generated partial function handler. The generated handler falls back to a reflection handler forEventProducerService
and ends withStatusCodes.NotFound
if the request is not matching.Use
akka.grpc.scaladsl.ServiceHandler.concatOrNotFound
withEventProducerServiceHandler.partial
when combining several services.