Class MongoDatabaseService

java.lang.Object
io.vertx.core.AbstractVerticle
de.wuespace.telestion.api.verticle.TelestionVerticle<MongoDatabaseService.Configuration>
de.wuespace.telestion.extension.mongodb.MongoDatabaseService
All Implemented Interfaces:
de.wuespace.telestion.api.verticle.trait.WithEventBus, io.vertx.core.Verticle

public class MongoDatabaseService extends de.wuespace.telestion.api.verticle.TelestionVerticle<MongoDatabaseService.Configuration> implements de.wuespace.telestion.api.verticle.trait.WithEventBus
MongoDatabaseService is a verticle which connects to a local running MongoDB-Database and listens for incoming database requests to process.

Mongo specific: Data is always saved in their exclusive collection which is always named after their Class.name.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Configuration for the MongoDatabaseService verticle.
  • Field Summary

    Fields inherited from class de.wuespace.telestion.api.verticle.TelestionVerticle

    logger

    Fields inherited from class io.vertx.core.AbstractVerticle

    context, vertx
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    onStop​(io.vertx.core.Promise<Void> stopPromise)
     

    Methods inherited from class de.wuespace.telestion.api.verticle.TelestionVerticle

    config, getConfig, getConfigType, getDefaultConfig, getGenericConfig, getGenericDefaultConfig, onStart, onStop, setDefaultConfig, setDefaultConfig, start, start, stop, stop

    Methods inherited from class io.vertx.core.AbstractVerticle

    deploymentID, getVertx, init, processArgs

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.vertx.core.Verticle

    getVertx, init, start, stop

    Methods 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

    • MongoDatabaseService

      public MongoDatabaseService()
  • Method Details