Interface VertxProvider
A supplier of
Vertx instances for use with the @ProvidedBy annotation.
Implementations must have a public no-arg constructor. The Supplier.get() method (inherited
from Supplier) should create and return the Vertx instance.
Usage example:
public class MyProvider implements VertxProvider {
@Override
public Vertx get() {
return Vertx.vertx(new VertxOptions().setWorkerPoolSize(4));
}
}
-
Method Summary
-
Method Details
-
close
Called when the test scope ends to clean up theVertxinstance.The default implementation calls
vertx.close().await()with the given timeout. Override this method for custom cleanup logic.- Parameters:
vertx- theVertxinstance to closetimeout- the maximum duration to wait for the close operation- Throws:
Exception- if the close operation fails
-