Class VertxHttpConsumer

  • All Implemented Interfaces:
    io.gridgo.connector.Consumer, io.gridgo.connector.httpcommon.HttpComponent, io.gridgo.connector.support.exceptions.FailureHandlerAware<io.gridgo.connector.Consumer>, io.gridgo.connector.support.FormattedMarshallable, io.gridgo.framework.ComponentLifecycle, io.gridgo.utils.helper.Loggable, io.gridgo.utils.helper.Startable

    public class VertxHttpConsumer
    extends io.gridgo.connector.httpcommon.AbstractHttpConsumer
    implements io.gridgo.connector.Consumer
    • Constructor Summary

      Constructors 
      Constructor Description
      VertxHttpConsumer​(io.gridgo.connector.support.config.ConnectorContext context, io.vertx.core.Vertx vertx, io.vertx.core.VertxOptions vertxOptions, io.vertx.core.http.HttpServerOptions options, java.lang.String path, java.lang.String method, java.lang.String format, java.util.Map<java.lang.String,​java.lang.Object> params)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String generateName()  
      protected void onStart()  
      protected void onStop()  
      • Methods inherited from class io.gridgo.connector.httpcommon.AbstractHttpConsumer

        buildFailureMessage, getFailureHandler, getFormat, setFailureHandler
      • Methods inherited from class io.gridgo.connector.impl.AbstractConsumer

        clearSubscribers, createMessage, createMessage, createMessage, ensurePayloadId, ensurePayloadId, getContext, parseMessage, parseMessage, parseMessage, parseMessage, publish, subscribe
      • Methods inherited from class io.gridgo.framework.AbstractComponentLifecycle

        getName, isStarted, start, stop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.gridgo.framework.ComponentLifecycle

        getName, start, stop
      • Methods inherited from interface io.gridgo.connector.Consumer

        clearSubscribers, subscribe, subscribe
      • Methods inherited from interface io.gridgo.connector.support.exceptions.FailureHandlerAware

        setFailureHandler
      • Methods inherited from interface io.gridgo.connector.support.FormattedMarshallable

        deserialize, serialize
      • Methods inherited from interface io.gridgo.connector.httpcommon.HttpComponent

        getMethod, getQueryParams
      • Methods inherited from interface io.gridgo.utils.helper.Loggable

        getLogger, getLogger
    • Constructor Detail

      • VertxHttpConsumer

        public VertxHttpConsumer​(io.gridgo.connector.support.config.ConnectorContext context,
                                 io.vertx.core.Vertx vertx,
                                 io.vertx.core.VertxOptions vertxOptions,
                                 io.vertx.core.http.HttpServerOptions options,
                                 java.lang.String path,
                                 java.lang.String method,
                                 java.lang.String format,
                                 java.util.Map<java.lang.String,​java.lang.Object> params)
    • Method Detail

      • onStart

        protected void onStart()
        Specified by:
        onStart in class io.gridgo.framework.AbstractComponentLifecycle
      • onStop

        protected void onStop()
        Specified by:
        onStop in class io.gridgo.framework.AbstractComponentLifecycle
      • generateName

        protected java.lang.String generateName()
        Specified by:
        generateName in class io.gridgo.framework.AbstractComponentLifecycle