Modifier and Type | Field and Description |
---|---|
protected Vertx |
AbstractVerticle.vertx
Reference to the Vert.x instance that deployed this verticle
|
protected Vertx |
Starter.vertx |
Modifier and Type | Method and Description |
---|---|
Vertx |
AbstractVerticle.getVertx()
Get the Vert.x instance
|
Vertx |
Verticle.getVertx()
Get a reference to the Vert.x instance that deployed this verticle
|
Vertx |
Context.owner() |
static Vertx |
Vertx.vertx()
Creates a non clustered instance using default options.
|
static Vertx |
Vertx.vertx(VertxOptions options)
Creates a non clustered instance using the specified options
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractVerticle.init(Vertx vertx,
Context context)
Initialise the verticle.
|
void |
Verticle.init(Vertx vertx,
Context context)
Initialise the verticle with the Vert.x instance and the context.
|
Modifier and Type | Method and Description |
---|---|
static void |
Vertx.clusteredVertx(VertxOptions options,
Handler<AsyncResult<Vertx>> resultHandler)
Creates a clustered instance using the specified options.
|
Modifier and Type | Method and Description |
---|---|
Vertx |
VertxFactory.vertx() |
Vertx |
VertxFactory.vertx(VertxOptions options) |
Modifier and Type | Method and Description |
---|---|
default void |
VerticleFactory.init(Vertx vertx) |
VertxMetrics |
VertxMetricsFactory.metrics(Vertx vertx,
VertxOptions options)
Create a new
VertxMetrics object. |
Modifier and Type | Method and Description |
---|---|
void |
VertxFactory.clusteredVertx(VertxOptions options,
Handler<AsyncResult<Vertx>> resultHandler) |
Modifier and Type | Method and Description |
---|---|
void |
ClusterManager.setVertx(Vertx vertx) |
Modifier and Type | Method and Description |
---|---|
Vertx |
RoutingContext.vertx() |
Modifier and Type | Method and Description |
---|---|
static Router |
Router.router(Vertx vertx)
Create a router
|
Modifier and Type | Method and Description |
---|---|
static SockJSHandler |
SockJSHandler.create(Vertx vertx)
Create a SockJS handler
|
static SockJSHandler |
SockJSHandler.create(Vertx vertx,
SockJSHandlerOptions options)
Create a SockJS handler
|
static void |
SockJSHandler.installTestApplications(Router router,
Vertx vertx)
Install SockJS test applications on a router - used when running the SockJS test suite
|
Modifier and Type | Method and Description |
---|---|
static ClusteredSessionStore |
ClusteredSessionStore.create(Vertx vertx)
Create a session store
|
static LocalSessionStore |
LocalSessionStore.create(Vertx vertx)
Create a session store
|
static ClusteredSessionStore |
ClusteredSessionStore.create(Vertx vertx,
String sessionMapName)
Create a session store
|
static LocalSessionStore |
LocalSessionStore.create(Vertx vertx,
String sessionMapName)
Create a session store
|
static LocalSessionStore |
LocalSessionStore.create(Vertx vertx,
String sessionMapName,
long reaperPeriod)
Create a session store
|
Modifier and Type | Method and Description |
---|---|
static AsyncSQLClient |
MySQLClient.createNonShared(Vertx vertx,
JsonObject config)
Create a MySQL client which maintains its own pool.
|
static AsyncSQLClient |
PostgreSQLClient.createNonShared(Vertx vertx,
JsonObject config)
Create a PostgreSQL client which maintains its own pool.
|
static AsyncSQLClient |
MySQLClient.createShared(Vertx vertx,
JsonObject config)
Like
MySQLClient.createShared(io.vertx.core.Vertx, JsonObject, String) but with the default pool name |
static AsyncSQLClient |
PostgreSQLClient.createShared(Vertx vertx,
JsonObject config)
Like
PostgreSQLClient.createShared(io.vertx.core.Vertx, JsonObject, String) but with the default pool name |
static AsyncSQLClient |
MySQLClient.createShared(Vertx vertx,
JsonObject config,
String poolName)
Create a MySQL client which shares its data source with any other MySQL clients created with the same
data source name
|
static AsyncSQLClient |
PostgreSQLClient.createShared(Vertx vertx,
JsonObject config,
String poolName)
Create a PostgreSQL client which shares its pool with any other MySQL clients created with the same
pool name
|
Modifier and Type | Method and Description |
---|---|
static AuthService |
AuthService.create(Vertx vertx,
AuthProvider provider)
Create an auth service instance using the specified auth provider instance.
|
static AuthService |
AuthService.createEventBusProxy(Vertx vertx,
String address)
Create a proxy to an auth service that is deployed somwehere on the event bus.
|
static AuthService |
AuthService.createFromClassName(Vertx vertx,
String className)
Create an auth service instance using the specified auth provider class name.
|
Constructor and Description |
---|
AuthServiceVertxEBProxy(Vertx vertx,
String address) |
AuthServiceVertxProxyHandler(Vertx vertx,
AuthService service,
String address,
boolean topLevel,
long timeoutSeconds) |
Modifier and Type | Method and Description |
---|---|
static ShiroAuthProvider |
ShiroAuthProvider.create(Vertx vertx,
ShiroAuthRealm shiroAuthRealm) |
static ShiroAuthProvider |
ShiroAuthProvider.create(Vertx vertx,
ShiroAuthRealmType shiroAuthRealmType,
JsonObject config) |
static AuthService |
ShiroAuthService.create(Vertx vertx,
ShiroAuthRealmType authRealmType,
JsonObject config)
Create an auth service using the specified auth realm type.
|
static AuthService |
ShiroAuthService.createFromRealm(Vertx vertx,
org.apache.shiro.realm.Realm shiroRealm)
Create an auth service using the specified Shiro Realm instance
|
Modifier and Type | Method and Description |
---|---|
static MetricsService |
MetricsService.create(Vertx vertx) |
Constructor and Description |
---|
ScheduledMetricsConsumer(Vertx vertx) |
ScheduledMetricsConsumer(Vertx vertx,
Measured measured) |
Modifier and Type | Method and Description |
---|---|
static JDBCClient |
JDBCClient.create(Vertx vertx,
DataSource dataSource)
Create a client using a pre-existing data source
|
static JDBCClient |
JDBCClient.createNonShared(Vertx vertx,
JsonObject config)
Create a JDBC client which maintains its own data source.
|
static JDBCClient |
JDBCClient.createShared(Vertx vertx,
JsonObject config)
Like
JDBCClient.createShared(io.vertx.core.Vertx, JsonObject, String) but with the default data source name |
static JDBCClient |
JDBCClient.createShared(Vertx vertx,
JsonObject config,
String dataSourceName)
Create a JDBC client which shares its data source with any other JDBC clients created with the same
data source name
|
Modifier and Type | Method and Description |
---|---|
static MailService |
MailService.create(Vertx vertx,
MailConfig config)
create an instance of MailService that is running in the local JVM
|
static MailService |
MailService.createEventBusProxy(Vertx vertx,
String address)
create an instance of MailService that calls the mail service via the event bus running somewhere else
|
Constructor and Description |
---|
MailServiceVertxEBProxy(Vertx vertx,
String address) |
MailServiceVertxProxyHandler(Vertx vertx,
MailService service,
String address,
boolean topLevel,
long timeoutSeconds) |
Modifier and Type | Method and Description |
---|---|
static MongoClient |
MongoClient.createNonShared(Vertx vertx,
JsonObject config)
Create a Mongo client which maintains its own data source.
|
static MongoClient |
MongoClient.createShared(Vertx vertx,
JsonObject config)
Like
MongoClient.createShared(io.vertx.core.Vertx, JsonObject, String) but with the default data source name |
static MongoClient |
MongoClient.createShared(Vertx vertx,
JsonObject config,
String dataSourceName)
Create a Mongo client which shares its data source with any other Mongo clients created with the same
data source name
|
Modifier and Type | Method and Description |
---|---|
void |
TestCase.awaitSuccess(Vertx vertx)
Assert the test case passes and block until it is executed.
|
void |
TestCase.awaitSuccess(Vertx vertx,
long timeout,
TimeUnit unit)
Assert the test case passes and block until it is executed.
|
TestCompletion |
TestSuite.run(Vertx vertx)
Run the testsuite with the default options and the specified
vertx instance.
The test suite will be executed on the event loop provided by the vertx argument. |
TestCompletion |
TestSuite.run(Vertx vertx,
TestOptions options)
Run the testsuite with the specified
options and the specified vertx instance.
The test suite will be executed on the event loop provided by the vertx argument when
TestOptions.setUseEventLoop(Boolean) is not set to false . |
Modifier and Type | Method and Description |
---|---|
static EventBusCollector |
EventBusCollector.create(Vertx vertx,
Handler<TestSuiteReport> reporter) |
static EventBusCollector |
EventBusCollector.create(Vertx vertx,
ReportingOptions options)
Create a message handler reporting with the specified options.
|
Modifier and Type | Method and Description |
---|---|
static Reporter<?> |
Reporter.reporter(Vertx vertx,
ReportOptions options) |
Reporter |
ReporterFactory.reporter(Vertx vertx,
ReportOptions options) |
Modifier and Type | Method and Description |
---|---|
static rx.Scheduler |
RxHelper.blockingScheduler(Vertx vertx)
Create a scheduler for a
Vertx object, actions can be blocking, they are not executed
on Vertx event loop. |
static rx.Scheduler |
RxHelper.scheduler(Vertx vertx)
Create a scheduler for a
Vertx object, actions are executed on the event loop. |
static rx.plugins.RxJavaSchedulersHook |
RxHelper.schedulerHook(Vertx vertx)
Create a scheduler hook for a
Vertx object, the RxJavaSchedulersHook.getIOScheduler()
uses a blocking scheduler. |
Constructor and Description |
---|
ContextScheduler(Vertx vertx,
boolean blocking) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractVerticle.init(Vertx vertx,
Context context) |
static Vertx |
Vertx.newInstance(Vertx arg) |
Constructor and Description |
---|
Vertx(Vertx delegate) |
Copyright © 2015. All Rights Reserved.