ServerCall

final class ServerCall[Request, Response] extends AnyVal
Companion
object
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def closeStream(status: Status, trailers: Metadata): Task[Unit]
def isReady: Boolean
def request(numMessages: Int): Task[Unit]

Asks for two messages even though we expect only one so that if a misbehaving client sends more than one response in a unary call we catch the contract violation and fail right away.

Asks for two messages even though we expect only one so that if a misbehaving client sends more than one response in a unary call we catch the contract violation and fail right away.

Note

This is a trick employed by the official grpc-java, check the source if you want to learn more.

def sendHeaders(headers: Metadata): Task[Unit]
def sendMessage(message: Response): Task[Unit]
def sendStreamingResponses(responses: Observable[Response], onReady: AsyncVar[Unit]): Task[Unit]

Concrete fields

val call: ServerCall[Request, Response]