Class JobCleanUpService

  • All Implemented Interfaces:
    org.glassfish.hk2.api.PostConstruct, ConfigListener

    @Service(name="job-cleanup")
    @RunLevel(10)
    public class JobCleanUpService
    extends Object
    implements org.glassfish.hk2.api.PostConstruct, ConfigListener
    This is an hk2 service which will clear all expired and inactive jobs
    Author:
    Bhakti Mehta
    • Constructor Detail

      • JobCleanUpService

        public JobCleanUpService()
    • Method Detail

      • postConstruct

        public void postConstruct()
        Specified by:
        postConstruct in interface org.glassfish.hk2.api.PostConstruct
      • changed

        public UnprocessedChangeEvents changed​(PropertyChangeEvent[] events)
        This method is notified for any changes in job-inactivity-limit or job-retention-period or persist, initial-delay or poll-interval option in ManagedJobConfig. Any change results in the job cleanup service to change the behaviour being updated.
        Specified by:
        changed in interface ConfigListener
        Parameters:
        events - the configuration change events.
        Returns:
        the unprocessed change events.