com.atlassian.scheduler.core.spi
Interface SchedulerServiceConfiguration

All Known Subinterfaces:
Quartz1SchedulerConfiguration, Quartz2SchedulerConfiguration

public interface SchedulerServiceConfiguration

Allows the host application to supply configuration parameters to the scheduler services.

Since:
v1.0

Method Summary
 TimeZone getDefaultTimeZone()
          Returns the default TimeZone to use when scheduling a job to run according to a cron expression when no specific time zone is provided.
 

Method Detail

getDefaultTimeZone

@Nullable
TimeZone getDefaultTimeZone()
Returns the default TimeZone to use when scheduling a job to run according to a cron expression when no specific time zone is provided.

The value is checked when the job is scheduled and treated as if it were given explicitly. As a result, if the host application is configured to use a new default time zone, then this will be used for jobs that are scheduled after the change, but existing jobs will continue to use the original setting.

Returns:
the default time zone to use for cron expression schedules; if the configuration object returns null, then TimeZone.getDefault() is assumed


Copyright © 2014 Atlassian. All Rights Reserved.