269.3. Spring Boot Auto-Configuration

구성 요소는 아래 나열된 12 가지 옵션을 지원합니다.

이름설명기본값유형

camel.component.quartz2.auto-start-scheduler

스케줄러를 자동으로 시작해야 하는지 여부입니다. 이 옵션은 기본값입니다.

true

부울

camel.component.quartz2.enable-jmx

JMX에서 Quartz 스케줄러를 관리할 수 있는 Quartz JMX 활성화 여부입니다. 이 옵션은 기본값입니다.

true

부울

camel.component.quartz2.enabled

quartz2 구성 요소 활성화

true

부울

camel.component.quartz2.interrupt-jobs-on-shutdown

종료 시 작업을 중단하여 스케줄러가 더 빨리 종료되고 실행 중인 작업을 중단하려고 합니다. 이 기능을 활성화하면 중단된 상태로 인해 실행 중인 작업이 실패할 수 있습니다.

false

부울

camel.component.quartz2.prefix-instance-name

Quartz Scheduler 인스턴스 이름에 CamelContext 이름을 접두사로 지정할지 여부입니다. 이는 기본적으로 각 CamelContext가 자체 Quartz 스케줄러 인스턴스를 사용하도록 하려면 기본적으로 활성화됩니다. 이 옵션을 false로 설정하여 여러 CamelContext 간에 Quartz 스케줄러 인스턴스를 재사용할 수 있습니다.

true

부울

camel.component.quartz2.prefix-job-name-with-endpoint-id

끝점 ID를 사용하여 quartz 작업의 접두사를 지정할지 여부입니다. 이 옵션은 기본값 false입니다.

false

부울

camel.component.quartz2.properties

Quartz 스케줄러를 구성하는 속성입니다. 옵션은 java.util.Properties 유형입니다.

 

문자열

camel.component.quartz2.properties-file

classpath에서 로드할 속성의 파일 이름입니다.

 

문자열

camel.component.quartz2.resolve-property-placeholders

구성 요소가 시작 시 자체적으로 속성 자리 표시자를 확인해야 하는지 여부입니다. String 유형의 속성만 속성 자리 표시자를 사용할 수 있습니다.Only properties which are of String type can use property placeholders.

true

부울

camel.component.quartz2.scheduler

새 스케줄러를 생성하는 대신 사용자 지정 구성된 Quartz 스케줄러를 사용합니다. 옵션은 org.quartz.Scheduler 유형입니다.

 

문자열

camel.component.quartz2.scheduler-factory

스케줄러를 생성하는 데 사용되는 사용자 지정 SchedulerFactory를 사용하려면 다음을 수행합니다. 옵션은 org.quartz.SchedulerFactory 유형입니다.

 

문자열

camel.component.quartz2.start-delayed-seconds

quartz 스케줄러를 시작하기 전에 대기하는 초입니다.

 

정수

예를 들어 다음 라우팅 규칙은 mock:results 엔드포인트에 두 개의 타이머 이벤트를 실행합니다.

from("quartz2://myGroup/myTimerName?trigger.repeatInterval=2&trigger.repeatCount=1").routeId("myRoute")
    .to("mock:result");

stateful=true 를 사용하는 경우 jobDataMap은 작업 을 실행할 때마다 다시 일치하므로 다음 실행에 대한 상태가 유지됩니다.

INFO: OSGi에서 실행 및 quartz 경로가 있는 여러 번들로 실행 중인 경우 Apache ServiceMix 또는 Apache Karaf와 같은 OSGi에서 실행하는 경우 Camel 경로가 있는 여러 번들이 Quartz2 끝점에서 시작하는 여러 번들이 있는 경우 이 ID가 고유한 <camelContext>에 ID를 할당했는지 확인합니다. <camelContext>에 id 를 설정하지 않으면 고유한 ID가 자동으로 할당되며 문제가 발생하지 않습니다.