VertxFutureServerInterpreter

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def blockingRoute[I, E, O](e: Endpoint[I, E, O, Any])(logic: I => Future[Either[E, O]]): Router => Route

Given a Router, creates and mounts a Route matching this endpoint, with default error handling The logic will be executed in a blocking context

Given a Router, creates and mounts a Route matching this endpoint, with default error handling The logic will be executed in a blocking context

Value Params
logic

the logic to associate with the endpoint

Returns

A function, that given a router, will attach this endpoint to it

def blockingRoute[I, E, O](e: ServerEndpoint[I, E, O, Any, [T] =>> Future[T]]): Router => Route

Given a Router, creates and mounts a Route matching this endpoint, with default error handling The logic will be executed in a blocking context

Given a Router, creates and mounts a Route matching this endpoint, with default error handling The logic will be executed in a blocking context

Returns

A function, that given a router, will attach this endpoint to it

def blockingRouteRecoverErrors[I, E, O](e: Endpoint[I, E, O, Any])(logic: I => Future[O])(implicit eIsThrowable: E <:< Throwable, eClassTag: ClassTag[E]): Router => Route

Given a Router, creates and mounts a Route matching this endpoint, with custom error handling The logic will be executed in a blocking context

Given a Router, creates and mounts a Route matching this endpoint, with custom error handling The logic will be executed in a blocking context

Value Params
logic

the logic to associate with the endpoint

Returns

A function, that given a router, will attach this endpoint to it

def route[I, E, O](e: Endpoint[I, E, O, Any])(logic: I => Future[Either[E, O]]): Router => Route

Given a Router, creates and mounts a Route matching this endpoint, with default error handling

Given a Router, creates and mounts a Route matching this endpoint, with default error handling

Value Params
logic

the logic to associate with the endpoint

Returns

A function, that given a router, will attach this endpoint to it

def route[I, E, O](e: ServerEndpoint[I, E, O, Any, [T] =>> Future[T]]): Router => Route

Given a Router, creates and mounts a Route matching this endpoint, with default error handling

Given a Router, creates and mounts a Route matching this endpoint, with default error handling

Returns

A function, that given a router, will attach this endpoint to it

def routeRecoverErrors[I, E, O](e: Endpoint[I, E, O, Any])(logic: I => Future[O])(implicit eIsThrowable: E <:< Throwable, eClassTag: ClassTag[E]): Router => Route

Given a Router, creates and mounts a Route matching this endpoint, with custom error handling

Given a Router, creates and mounts a Route matching this endpoint, with custom error handling

Value Params
logic

the logic to associate with the endpoint

Returns

A function, that given a router, will attach this endpoint to it

Inherited methods

protected def mountWithDefaultHandlers[F[_], I, E, O, C](e: ServerEndpoint[I, E, O, C, F])(router: Router, routeDef: RouteDefinition): Route