Class EmptyProcessingUnitHandler

    • Constructor Detail

      • EmptyProcessingUnitHandler

        public EmptyProcessingUnitHandler()
        Constructor for EmptyProcessingUnitHandler
    • Method Detail

      • getMaxNumberOfEmptyProcessingUnits

        public java.lang.Long getMaxNumberOfEmptyProcessingUnits()
        Get the maximum number of empty processing units before it aborts. An empty processing unit mean that there was no progress: no failed nor successful units processed determined by the IProcessingUnitStatus. The maximum number indicates after how many empty runs the processing unit will abort.
        Returns:
        the max. number of processing unit runs with no progress
      • setMaxNumberOfEmptyProcessingUnits

        public void setMaxNumberOfEmptyProcessingUnits​(java.lang.Long maxNumberOfEmptyProcessingUnits)
        Defines the max. number of processing unit runs with no progress (no failed nor successful) before it aborts.
        Parameters:
        maxNumberOfEmptyProcessingUnits - the max number of processing unit runs with no progress before it aborts
      • getSleepTimeAfterEmptyProcessingUnit

        public java.lang.Long getSleepTimeAfterEmptyProcessingUnit()
        Get the sleep time of an empty processing unit run after there was no progress (no failed nor successful units).
        Returns:
        the sleep time in milliseconds
      • setSleepTimeAfterEmptyProcessingUnit

        public void setSleepTimeAfterEmptyProcessingUnit​(java.lang.Long emptyProceessingUnitSleepTime)
        Defines the sleep time of an empty processing unit after there was no progress (no failed nor successful units).
        Parameters:
        emptyProceessingUnitSleepTime - the sleep time in milliseconds