io.vertx.lang.scala
Members list
Packages
Creating a package object scala that imports from the scala package is not possible. That's why this class takes care of abstracting the necessary classes/conversions away so we don't have to import from the scala package directly.
Creating a package object scala that imports from the scala package is not possible. That's why this class takes care of abstracting the necessary classes/conversions away so we don't have to import from the scala package directly.
Attributes
Scala extensions for more idiomatic handling of io.vertx.core.json.JsonObject and io.vertx.core.json.JsonArray.
Scala extensions for more idiomatic handling of io.vertx.core.json.JsonObject and io.vertx.core.json.JsonArray.
Attributes
Type members
Classlikes
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ImplicitConversions.type
Base class for verticle implementations.
Base class for verticle implementations.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ScalaVerticle.type
Factory for creating Verticle-Instances from a compiled class or scala source code.
Factory for creating Verticle-Instances from a compiled class or scala source code.
Attributes
- Supertypes
-
trait VerticleFactoryclass Objecttrait Matchableclass Any
A scala scala.concurrent.ExecutionContext binds scala.concurrent.Promise/scala.concurrent.Future to a thread. In the case of Vert.x we have to make sure that they execute on the right context. A context could be that of a worker or a standard verticle. This execution context implementation runs all Runnables on the associated io.vertx.core.Context.
A scala scala.concurrent.ExecutionContext binds scala.concurrent.Promise/scala.concurrent.Future to a thread. In the case of Vert.x we have to make sure that they execute on the right context. A context could be that of a worker or a standard verticle. This execution context implementation runs all Runnables on the associated io.vertx.core.Context.
Taken from the original Vert.x-impl https://github.com/vert-x/mod-lang-scala/blob/master/src/main/scala/org/vertx/scala/core/VertxExecutionContext.scala
Attributes
- Companion
- object
- Supertypes
-
trait ExecutionContextclass Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
Value members
Concrete methods
Turns a Vert.x callback function into a ScalaFuture.
Turns a Vert.x callback function into a ScalaFuture.
Value parameters
- f
-
the callback function; if there are more parameters than just
handler
, you may apply it partially
Attributes
Extensions
Extensions
Like close from io.vertx.core.Vertx but returns a Scala Future instead of taking an AsyncResultHandler.
Like close from io.vertx.core.Vertx but returns a Scala Future instead of taking an AsyncResultHandler.
Attributes
Like deployVerticle but returns a Scala Future instead of taking an AsyncResultHandler.
Like deployVerticle but returns a Scala Future instead of taking an AsyncResultHandler.
Set a default exception handler for io.vertx.core.Context, set on io.vertx.core.Context#exceptionHandler at creation. * @param handler the exception handler
Set a default exception handler for io.vertx.core.Context, set on io.vertx.core.Context#exceptionHandler at creation. * @param handler the exception handler
Attributes
- Returns
-
a reference to this, so the API can be used fluently
Safely execute some blocking code.
Safely execute some blocking code.
Executes the blocking code in the handler blockingCodeHandler
using a thread from the worker pool.
When the code is complete the returned Future will be completed with the result.
Value parameters
- blockingFunction
-
function containing blocking code
- ordered
-
if true then if executeBlocking is called several times on the same context, the executions for that context will be executed serially, not in parallel. if false then they will be no ordering guarantees
Attributes
- Returns
-
a Future representing the result of the blocking operation