Class ProducerVerticle<T>

java.lang.Object
io.vertx.core.AbstractVerticle
cn.sinozg.applet.mq.vertx.verticle.ProducerVerticle<T>
All Implemented Interfaces:
io.vertx.core.Verticle

public class ProducerVerticle<T> extends io.vertx.core.AbstractVerticle
生产者
Since:
2023-11-20 12:29
Author:
xieyubin
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Class<T>
     
    private io.vertx.core.eventbus.EventBus
     

    Fields inherited from class io.vertx.core.AbstractVerticle

    context, vertx
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    publish(String topic, T msg)
     
    void
     

    Methods inherited from class io.vertx.core.AbstractVerticle

    config, deploymentID, getVertx, init, processArgs, start, stop, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • clazz

      private final Class<T> clazz
    • eventBus

      private io.vertx.core.eventbus.EventBus eventBus
  • Constructor Details

    • ProducerVerticle

      public ProducerVerticle(Class<T> clazz)
  • Method Details

    • start

      public void start()
      Overrides:
      start in class io.vertx.core.AbstractVerticle
    • publish

      public void publish(String topic, T msg)