public class JRubyVerticleFactory extends Object implements VerticleFactory
Constructor and Description |
---|
JRubyVerticleFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
blockingCreate()
If the
VerticleFactory.createVerticle(String, ClassLoader) method might be slow Vert.x will call it using a worker
thread instead of an event loop if this returns true |
Verticle |
createVerticle(String verticleName,
ClassLoader classLoader)
Create a verticle instance.
|
void |
init(Vertx vertx)
Initialise the factory
|
String |
prefix() |
static void |
requireCallback(Runnable runnable) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, order, removePrefix, requiresResolve, resolve
public String prefix()
prefix
in interface VerticleFactory
public boolean blockingCreate()
VerticleFactory
VerticleFactory.createVerticle(String, ClassLoader)
method might be slow Vert.x will call it using a worker
thread instead of an event loop if this returns trueblockingCreate
in interface VerticleFactory
VerticleFactory.createVerticle(String, ClassLoader)
should be called on a worker thread.public void init(Vertx vertx)
VerticleFactory
init
in interface VerticleFactory
vertx
- The Vert.x instancepublic Verticle createVerticle(String verticleName, ClassLoader classLoader) throws Exception
VerticleFactory
VerticleFactory.blockingCreate()
.createVerticle
in interface VerticleFactory
verticleName
- The verticle nameclassLoader
- The class loaderException
public static void requireCallback(Runnable runnable)
Copyright © 2016. All rights reserved.