public class JRubyVerticle extends Object implements Verticle
Constructor and Description |
---|
JRubyVerticle(JRubyVerticleFactory factory,
io.vertx.lang.ruby.ContainerHolder holder,
ClassLoader classLoader,
String verticleName) |
Modifier and Type | Method and Description |
---|---|
Vertx |
getVertx()
Get a reference to the Vert.x instance that deployed this verticle
|
void |
init(Vertx vertx,
Context context)
Initialise the verticle with the Vert.x instance and the context.
|
void |
start(Future<Void> startFuture)
Start the verticle instance.
|
void |
stop(Future<Void> stopFuture)
Stop the verticle instance.
|
public JRubyVerticle(JRubyVerticleFactory factory, io.vertx.lang.ruby.ContainerHolder holder, ClassLoader classLoader, String verticleName)
public Vertx getVertx()
Verticle
public void init(Vertx vertx, Context context)
Verticle
This method is called by Vert.x when the instance is deployed. You do not call it yourself.
public void start(Future<Void> startFuture) throws Exception
Verticle
Vert.x calls this method when deploying the instance. You do not call it yourself.
A future is passed into the method, and when deployment is complete the verticle should either call
Future.complete(T)
or Future.fail(java.lang.Throwable)
the future.
public void stop(Future<Void> stopFuture) throws Exception
Verticle
Vert.x calls this method when un-deploying the instance. You do not call it yourself.
A future is passed into the method, and when un-deployment is complete the verticle should either call
Future.complete(T)
or Future.fail(java.lang.Throwable)
the future.
Copyright © 2016. All rights reserved.