Class AbstractProcessor

    • Field Detail

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • name

        private final String name
      • delayMs

        private final long delayMs
      • running

        private boolean running
    • Constructor Detail

      • AbstractProcessor

        public AbstractProcessor​(String name,
                                 Duration delay)
    • Method Detail

      • initialize

        public void initialize()
                        throws Exception
        Override initialize to initialize resources before starting the processor
        Throws:
        Exception
      • destroy

        public void destroy()
                     throws Exception
        Override destroy to clean up resources after stopping the processor
        Throws:
        Exception
      • isRunning

        public boolean isRunning()
      • stop

        public final void stop()
      • getName

        public String getName()