Package org.quartz

Class SchedulerContext

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,​java.lang.Object>

    public class SchedulerContext
    extends StringKeyDirtyFlagMap
    implements java.io.Serializable
    Holds context/environment data that can be made available to Jobs as they are executed. This feature is much like the ServletContext feature when working with J2EE servlets.

    Future versions of Quartz may make distinctions on how it propagates data in SchedulerContext between instances of proxies to a single scheduler instance - i.e. if Quartz is being used via RMI.

    Author:
    James House
    See Also:
    Scheduler.getContext(), Serialized Form
    • Constructor Detail

      • SchedulerContext

        public SchedulerContext()
        Create an empty SchedulerContext.
      • SchedulerContext

        public SchedulerContext​(java.util.Map<?,​?> map)
        Create a SchedulerContext with the given data.