Class AbstractPojoProcessor<T>

  • All Implemented Interfaces:
    Processor, ContextAwareComponent, io.gridgo.framework.ComponentLifecycle, io.gridgo.framework.NamedComponent, io.gridgo.utils.helper.Loggable

    public abstract class AbstractPojoProcessor<T>
    extends AbstractProcessor
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractPojoProcessor​(java.lang.Class<? extends T> pojoType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected T handleDeserializationException​(java.lang.Exception ex, io.gridgo.bean.BElement body)  
      void process​(RoutingContext rc, GridgoContext gc)  
      protected void processMulti​(java.util.List<T> request, io.gridgo.framework.support.Message msg, org.joo.promise4j.Deferred<io.gridgo.framework.support.Message,​java.lang.Exception> deferred, GridgoContext gc)  
      protected void processSingle​(T request, io.gridgo.framework.support.Message msg, org.joo.promise4j.Deferred<io.gridgo.framework.support.Message,​java.lang.Exception> deferred, GridgoContext gc)  
      • 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

      • AbstractPojoProcessor

        public AbstractPojoProcessor​(java.lang.Class<? extends T> pojoType)
    • Method Detail

      • handleDeserializationException

        protected T handleDeserializationException​(java.lang.Exception ex,
                                                   io.gridgo.bean.BElement body)
      • processSingle

        protected void processSingle​(T request,
                                     io.gridgo.framework.support.Message msg,
                                     org.joo.promise4j.Deferred<io.gridgo.framework.support.Message,​java.lang.Exception> deferred,
                                     GridgoContext gc)
      • processMulti

        protected void processMulti​(java.util.List<T> request,
                                    io.gridgo.framework.support.Message msg,
                                    org.joo.promise4j.Deferred<io.gridgo.framework.support.Message,​java.lang.Exception> deferred,
                                    GridgoContext gc)