Package de.wuespace.telestion.examples
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.-
Field Summary
Fields inherited from class de.wuespace.telestion.api.verticle.TelestionVerticle
loggerFields inherited from class io.vertx.core.AbstractVerticle
context, vertx -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.wuespace.telestion.api.verticle.TelestionVerticle
config, getConfig, getConfigType, getDefaultConfig, getGenericConfig, getGenericDefaultConfig, onStart, onStop, onStop, setDefaultConfig, setDefaultConfig, start, start, stop, stopMethods inherited from class io.vertx.core.AbstractVerticle
deploymentID, getVertx, init, processArgsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertx.core.Verticle
getVertx, init, start, stopMethods inherited from interface de.wuespace.telestion.api.verticle.trait.WithEventBus
publish, publish, publish, publish, publish, publish, publish, publish, publish, publish, publish, publish, register, register, register, request, request, request, request, request, request, request, request, request, request, request, request, request, request, request, request, request, request, request, request, request, request, request, request, send, send, send, send, send, send, send, send, send, send, send, send
-
Constructor Details
-
PositionPublisher
public PositionPublisher()
-
-
Method Details
-
main
Deprecated.Internal. Don't use it! TODO remove it.
A small self containing usage example.- Parameters:
args- console-arguments
-
onStart
Description copied from class:TelestionVerticleStarts 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:
onStartin classTelestionVerticle<NoConfiguration>- Throws:
Exception
-