Class AbstractProcessor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.Optional<io.gridgo.bean.BValue> generateId()  
      java.lang.String generateName()  
      GridgoContext getContext()  
      protected void onStart()  
      protected void onStop()  
      void setContext​(GridgoContext context)  
      Gateway withGateway​(java.lang.String name)  
      • Methods inherited from class io.gridgo.connector.impl.AbstractMessageComponent

        attachSource, createMessage, createMessage, createMessage, createMessage, ensurePayloadId, ensurePayloadId
      • Methods inherited from class io.gridgo.framework.impl.AbstractComponentLifecycle

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

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

        isStarted, start, stop
      • Methods inherited from interface io.gridgo.utils.helper.Loggable

        getLogger, getLogger
      • Methods inherited from interface io.gridgo.framework.NamedComponent

        getName
    • Constructor Detail

      • AbstractProcessor

        public AbstractProcessor()
    • Method Detail

      • withGateway

        public Gateway withGateway​(java.lang.String name)
      • generateName

        public java.lang.String generateName()
        Specified by:
        generateName in class io.gridgo.framework.impl.AbstractComponentLifecycle
      • generateId

        protected java.util.Optional<io.gridgo.bean.BValue> generateId()
        Specified by:
        generateId in class io.gridgo.connector.impl.AbstractMessageComponent
      • onStart

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

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