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, waitclose, order, removePrefix, requiresResolve, resolvepublic String prefix()
prefix in interface VerticleFactorypublic boolean blockingCreate()
VerticleFactoryVerticleFactory.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 VerticleFactoryVerticleFactory.createVerticle(String, ClassLoader) should be called on a worker thread.public void init(Vertx vertx)
VerticleFactoryinit in interface VerticleFactoryvertx - The Vert.x instancepublic Verticle createVerticle(String verticleName, ClassLoader classLoader) throws Exception
VerticleFactoryVerticleFactory.blockingCreate().createVerticle in interface VerticleFactoryverticleName - The verticle nameclassLoader - The class loaderExceptionpublic static void requireCallback(Runnable runnable)
Copyright © 2016. All rights reserved.