Class PositionPublisher

java.lang.Object
io.vertx.core.AbstractVerticle
de.wuespace.telestion.api.verticle.TelestionVerticle<NoConfiguration>
de.wuespace.telestion.examples.PositionPublisher
All Implemented Interfaces:
WithEventBus, io.vertx.core.Verticle

public final class PositionPublisher extends TelestionVerticle<NoConfiguration> implements WithEventBus
A class which publishes positions every two seconds. A codec for Position has to be registered.
  • Constructor Details

    • PositionPublisher

      public PositionPublisher()
  • Method Details

    • main

      @Deprecated public static void main(String[] args)
      Deprecated.
      Internal. Don't use it! TODO remove it.

      A small self containing usage example.
      Parameters:
      args - console-arguments
    • onStart

      public void onStart() throws Exception
      Description copied from class: TelestionVerticle
      Starts the verticle.

      This is called by Vert.x when the verticle instance is deployed. Please don't call it yourself.

      If your verticle only does synchronous start tasks, use this method.

      This is the synchronous part to the TelestionVerticle.onStart(Promise) method.

      Overrides:
      onStart in class TelestionVerticle<NoConfiguration>
      Throws:
      Exception