Path: redb-route/redb.Route.Quartz/QuartzSchedulerOptions.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Quartz/QuartzSchedulerOptions.cs
----
namespace redb.Route.Quartz;
///
/// How the Quartz component builds the scheduler of a route context — the store, the cluster, the serializer, the
/// thread pool — when nobody handed the context a ready IScheduler. Register it on the context
/// (AddService) or in DI; the component then creates one scheduler per context, as Apache Camel's
/// QuartzComponent does per CamelContext, named {InstanceNamePrefix}-{context id}.
///
/// A host shares the options, not a scheduler: each context gets a job namespace of its own (two packages that both
/// say cron://nightly do not collide), and in a clustered store a context's cluster is made of the nodes that
/// run that context. A context without a cron:/qtimer: route creates no scheduler at all.
///
///
public sealed class QuartzSchedulerOptions
{
/// Prefix of the scheduler name; the context id follows it. Default redb-route.
public string InstanceNamePrefix { get; init; } = "redb-route";
///
/// Quartz properties of the scheduler (quartz.jobStore.type, quartz.jobStore.clustered,
/// quartz.dataSource.*, quartz.serializer.type, quartz.threadPool.maxConcurrency...).
/// quartz.scheduler.instanceName is set by the component.
///
public IReadOnlyDictionary Properties { get; init; } = new Dictionary();
}