MCPcopy
hub / github.com/eclipse-vertx/vert.x / Deployable

Interface Deployable

vertx-core/src/main/java/io/vertx/core/Deployable.java:20–44  ·  view source on GitHub ↗

Base interface for reactive services written in Java deployed in a Vert.x instance @author Julien Viet

Source from the content-addressed store, hash-verified

18 * @author <a href="mailto:julien@julienviet.com">Julien Viet</a>
19 */
20@FunctionalInterface
21public interface Deployable {
22
23 /**
24 * Start the deployable.
25 * <p>
26 * Vert.x calls this method when deploying this deployable. You do not call it yourself.
27 *
28 * @param context the Vert.x context assigned to this deployable
29 * @return a future signalling the start-up completion
30 */
31 Future<?> deploy(Context context) throws Exception;
32
33 /**
34 * Stop the deployable.
35 * <p>
36 * Vert.x calls this method when undeploying this deployable. You do not call it yourself.
37 *
38 * @param context the Vert.x context assigned to this deployable
39 * @return a future signalling the clean-up completion
40 */
41 default Future<?> undeploy(Context context) throws Exception {
42 return ((ContextInternal)context).succeededFuture();
43 }
44}

Callers 2

undeployMethod · 0.95
undeployMethod · 0.95

Implementers 7

DeployableImplvertx-core/src/test/java/io/vertx/test
VerticleBasevertx-core/src/main/java/io/vertx/core
InjectVertxInTestMethodvertx-core/src/test/java/io/vertx/test
InjectVertxInBeforeMethodvertx-core/src/test/java/io/vertx/test
AbstractVerticlevertx-core/src/main/java/io/vertx/core
DefaultDeploymentManagervertx-core/src/main/java/io/vertx/core
DefaultDeploymentvertx-core/src/main/java/io/vertx/core

Calls

no outgoing calls

Tested by

no test coverage detected