Class TenantAwareJobReschedulerLifecycle

  • All Implemented Interfaces:
    com.atlassian.config.lifecycle.LifecycleItem

    public class TenantAwareJobReschedulerLifecycle
    extends Object
    implements com.atlassian.config.lifecycle.LifecycleItem
    Ensures that our current tenant or future tenant jobs have their jobs prodded into the correct timezone by TenantAwareJobRescheduler.
    Since:
    5.7
    • Constructor Detail

      • TenantAwareJobReschedulerLifecycle

        public TenantAwareJobReschedulerLifecycle()
    • Method Detail

      • startup

        public void startup​(com.atlassian.config.lifecycle.LifecycleContext lifecycleContext)
                     throws Exception
        Specified by:
        startup in interface com.atlassian.config.lifecycle.LifecycleItem
        Throws:
        Exception
      • shutdown

        public void shutdown​(com.atlassian.config.lifecycle.LifecycleContext lifecycleContext)
                      throws Exception
        Specified by:
        shutdown in interface com.atlassian.config.lifecycle.LifecycleItem
        Throws:
        Exception
      • setTenantAwareJobRescheduler

        public void setTenantAwareJobRescheduler​(TenantAwareJobRescheduler tenantAwareJobRescheduler)
      • setTenantAccessor

        public void setTenantAccessor​(com.atlassian.tenancy.api.TenantAccessor tenantAccessor)
      • setEventPublisher

        public void setEventPublisher​(com.atlassian.event.api.EventPublisher eventPublisher)