Class SleepingItemProcessor<I>

  • All Implemented Interfaces:
    ItemProcessor<I,​I>

    public class SleepingItemProcessor<I>
    extends java.lang.Object
    implements ItemProcessor<I,​I>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      Iprocess​(I item)
      Process the provided item, returning a potentially modified or new item for continued processing.
      voidsetMillisToSleep​(long millisToSleep) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SleepingItemProcessor

        public SleepingItemProcessor()
    • Method Detail

      • process

        public I process​(I item)
                  throws java.lang.Exception
        Description copied from interface: ItemProcessor
        Process the provided item, returning a potentially modified or new item for continued processing. If the returned result is null, it is assumed that processing of the item should not continue.
        Specified by:
        process in interface ItemProcessor<I,​I>
        Parameters:
        item - to be processed
        Returns:
        potentially modified or new item for continued processing, null if processing of the provided item should not continue.
        Throws:
        java.lang.Exception - thrown if exception occurs during processing.
      • setMillisToSleep

        public void setMillisToSleep​(long millisToSleep)