object EventProducerServicePowerApiHandler
- Annotations
- @ApiMayChange() @AkkaGrpcGenerated()
- Source
- EventProducerServicePowerApiHandler.scala
- Alphabetic
- By Inheritance
- EventProducerServicePowerApiHandler
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def apply(implementation: EventProducerServicePowerApi, 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: EventProducerServicePowerApi, 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: EventProducerServicePowerApi, 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: EventProducerServicePowerApi)(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 partial(implementation: EventProducerServicePowerApi, 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.
- def withServerReflection(implementation: EventProducerServicePowerApi)(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.