Class CountedReader

    • Field Detail

      • items

        protected long items
    • Constructor Detail

      • CountedReader

        public CountedReader()
    • Method Detail

      • incrementReaderCount

        protected void incrementReaderCount()
      • incrementCount

        protected void incrementCount​(int number)
      • open

        public void open​(Serializable checkpoint)
                  throws Exception
        Specified by:
        open in interface javax.batch.api.chunk.ItemReader
        Throws:
        Exception
      • readItem

        public Object readItem()
                        throws Exception
        Specified by:
        readItem in interface javax.batch.api.chunk.ItemReader
        Throws:
        Exception
      • checkpointInfo

        public Serializable checkpointInfo()
                                    throws Exception
        Specified by:
        checkpointInfo in interface javax.batch.api.chunk.ItemReader
        Throws:
        Exception