Class IncrementalReapTask

    • Constructor Detail

      • IncrementalReapTask

        public IncrementalReapTask​(SessionHelper sessionHelper,
                                   SessionReaperStatistics statistics,
                                   Iterator iterIds,
                                   int cEstimatedSessions)
        Construct an IncrementalReapTask.
        Parameters:
        sessionHelper - the session helper
        statistics - the session reaper statistics
        iterIds - an iterator of session IDs to check
        cEstimatedSessions - the estimated number of session IDs to check
    • Method Detail

      • reap

        protected void reap()
        The task process: Process a portion of the reaping cycle.
        Specified by:
        reap in class AbstractReapTask
      • getSessionChunkCount

        public int getSessionChunkCount()
        Returns:
        the number of sessions to process at a time
      • getSessionChunkMillis

        public int getSessionChunkMillis()
        Returns:
        the number of milliseconds allocated to each chunk