public class GroovyVerticleFactory extends Object implements VerticleFactory
| Constructor and Description |
|---|
GroovyVerticleFactory() |
| 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 |
void |
close()
Close the factory.
|
Verticle |
createVerticle(String verticleName,
ClassLoader classLoader)
Create a verticle instance.
|
void |
init(Vertx vertx)
Initialise the factory
|
String |
prefix() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitorder, removePrefix, requiresResolve, resolvepublic void init(Vertx vertx)
VerticleFactoryinit in interface VerticleFactoryvertx - The Vert.x instancepublic 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 Verticle createVerticle(String verticleName, ClassLoader classLoader) throws Exception
VerticleFactoryVerticleFactory.blockingCreate().createVerticle in interface VerticleFactoryverticleName - The verticle nameclassLoader - The class loaderExceptionpublic void close()
VerticleFactoryclose in interface VerticleFactoryCopyright © 2017. All rights reserved.