Class ModelHandlerTask<T>

  • All Implemented Interfaces:
    AutoCloseable, Runnable, org.symphonyoss.s2.fugue.pipeline.IConsumer<T>, org.symphonyoss.s2.fugue.pipeline.IRetryableConsumer<T>

    public abstract class ModelHandlerTask<T>
    extends Object
    implements Runnable, org.symphonyoss.s2.fugue.pipeline.IConsumer<T>
    • Constructor Detail

    • Method Detail

      • consume

        public void consume​(T item,
                            org.symphonyoss.s2.fugue.core.trace.ITraceContext trace)
        Specified by:
        consume in interface org.symphonyoss.s2.fugue.pipeline.IConsumer<T>
        Specified by:
        consume in interface org.symphonyoss.s2.fugue.pipeline.IRetryableConsumer<T>
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface org.symphonyoss.s2.fugue.pipeline.IRetryableConsumer<T>
      • schedule

        public void schedule()
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • finish

        protected abstract void finish()
      • isReady

        protected abstract boolean isReady()
      • handleTask

        protected abstract void handleTask​(T request)