public interface GrpcServerRequest<Req,Resp> extends GrpcReadStream<Req>
Modifier and Type | Method and Description |
---|---|
HttpConnection |
connection() |
GrpcServerRequest<Req,Resp> |
endHandler(Handler<Void> endHandler)
Set an end handler.
|
GrpcServerRequest<Req,Resp> |
errorHandler(Handler<GrpcError> handler)
Set a handler to be notified with gRPC errors.
|
GrpcServerRequest<Req,Resp> |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
GrpcServerRequest<Req,Resp> |
fetch(long amount)
Fetch the specified
amount of elements. |
String |
fullMethodName() |
GrpcServerRequest<Req,Resp> |
handler(Handler<Req> handler)
Set a data handler.
|
GrpcServerRequest<Req,Resp> |
messageHandler(Handler<GrpcMessage> handler)
Set a handler to be notified with incoming encoded messages.
|
String |
methodName() |
GrpcServerRequest<Req,Resp> |
pause()
Pause the
ReadStream , it sets the buffer in fetch mode and clears the actual demand. |
GrpcServerResponse<Req,Resp> |
response() |
GrpcServerRequest<Req,Resp> |
resume()
Resume reading, and sets the buffer in
flowing mode. |
ServiceName |
serviceName() |
collecting, encoding, end, headers, last
pipe, pipeTo, pipeTo
ServiceName serviceName()
String methodName()
String fullMethodName()
GrpcServerResponse<Req,Resp> response()
GrpcServerRequest<Req,Resp> messageHandler(Handler<GrpcMessage> handler)
GrpcReadStream
handler
is
responsible for fully decoding incoming messages, including compression.messageHandler
in interface GrpcReadStream<Req>
handler
- the message handlerGrpcServerRequest<Req,Resp> errorHandler(Handler<GrpcError> handler)
GrpcReadStream
errorHandler
in interface GrpcReadStream<Req>
handler
- the error handlerGrpcServerRequest<Req,Resp> exceptionHandler(Handler<Throwable> handler)
ReadStream
exceptionHandler
in interface GrpcReadStream<Req>
exceptionHandler
in interface ReadStream<Req>
exceptionHandler
in interface StreamBase
handler
- the exception handlerGrpcServerRequest<Req,Resp> handler(Handler<Req> handler)
ReadStream
handler
in interface GrpcReadStream<Req>
handler
in interface ReadStream<Req>
GrpcServerRequest<Req,Resp> pause()
ReadStream
ReadStream
, it sets the buffer in fetch
mode and clears the actual demand.
While it's paused, no data will be sent to the data handler
.
pause
in interface GrpcReadStream<Req>
pause
in interface ReadStream<Req>
GrpcServerRequest<Req,Resp> resume()
ReadStream
flowing
mode.
If the ReadStream
has been paused, reading will recommence on it.resume
in interface GrpcReadStream<Req>
resume
in interface ReadStream<Req>
GrpcServerRequest<Req,Resp> fetch(long amount)
ReadStream
amount
of elements. If the ReadStream
has been paused, reading will
recommence with the specified amount
of items, otherwise the specified amount
will
be added to the current stream demand.fetch
in interface GrpcReadStream<Req>
fetch
in interface ReadStream<Req>
GrpcServerRequest<Req,Resp> endHandler(Handler<Void> endHandler)
ReadStream
endHandler
in interface GrpcReadStream<Req>
endHandler
in interface ReadStream<Req>
HttpConnection connection()
Copyright © 2024 Eclipse. All rights reserved.