c

vertices.core

VertxVertxOps

implicit final class VertxVertxOps extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VertxVertxOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new VertxVertxOps(target: Vertx)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def closeL(): Task[Unit]

    Like #close but the completionHandler will be called when the close is complete

  6. def deployVerticleL(name: String, options: DeploymentOptions): Task[String]

    Like Handler) but io.vertx.core.DeploymentOptions are provided to configure the deployment.

    Like Handler) but io.vertx.core.DeploymentOptions are provided to configure the deployment.

    name

    the name

    options

    the deployment options.

  7. def deployVerticleL(name: String): Task[String]

    Like #deployVerticle(String) but the completionHandler will be notified when the deployment is complete.

    Like #deployVerticle(String) but the completionHandler will be notified when the deployment is complete.

    If the deployment is successful the result will contain a String representing the unique deployment ID of the deployment.

    This deployment ID can subsequently be used to undeploy the verticle.

    name

    The identifier

  8. def executeBlockingL[T](blockingCodeHandler: Handler[Promise[T]]): Task[T]

    Like boolean, Handler) called with ordered = true.

  9. def executeBlockingL[T](blockingCodeHandler: Handler[Promise[T]], ordered: Boolean): Task[T]

    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 handler resultHandler will be called with the result on the original context (e.g. on the original event loop of the caller).

    A Future instance is passed into blockingCodeHandler. When the blocking code successfully completes, the handler should call the Promise#complete or Promise#complete(Object) method, or the Promise#fail method if it failed.

    In the blockingCodeHandler the current context remains the original context and therefore any task scheduled in the blockingCodeHandler will be executed on the this context and not on the worker thread.

    The blocking code should block for a reasonable amount of time (i.e no more than a few seconds). Long blocking operations or polling operations (i.e a thread that spin in a loop polling events in a blocking fashion) are precluded.

    When the blocking operation lasts more than the 10 seconds, a message will be printed on the console by the blocked thread checker.

    Long blocking operations should use a dedicated thread managed by the application, which can interact with verticles using the event-bus or Context#runOnContext(Handler)

    blockingCodeHandler

    handler representing the blocking code to run

    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

  10. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. val target: Vertx
  13. def toString(): String
    Definition Classes
    Any
  14. def undeployL(deploymentID: String): Task[Unit]

    Like but the completionHandler will be notified when the undeployment is complete.

    Like but the completionHandler will be notified when the undeployment is complete.

    deploymentID

    the deployment ID

Inherited from AnyVal

Inherited from Any

Ungrouped