Skip to main content

Verticle

Verticles are the "building blocks," so to speak, of the Vert.x framework.

Basic mechanism

Verticles are, essentially, modular blocks of code that fulfill a specific function.

They get triggered by either something external or another Verticle and can, in turn, also trigger other Verticles.

Link to

Verticles communicate with each other using messages on the so-called Event Bus.

You can think about Verticles as processes in a data flow diagram:

Link to

Here, processes are Verticles and the data between them are messages on the Event Bus.

Example Code

import de.wuespace.telestion.api.verticle.NoConfiguration;
import de.wuespace.telestion.api.verticle.TelestionVerticle;

public class MyVerticle extends TelestionVerticle<NoConfiguration> {
// Called when Verticle is deployed
@Override
public void onStart() {
}

// Optional - called when Verticle is undeployed
@Override
public void onStop() {
}
}

See also

Tutorial: Writing a verticle »/application/tutorials/writing-a-verticle/