Если указаны delay и timeUnit, а initialDelay нет, для последнего будет задано значение по умолчанию 1000, интерпретируемое в данном timeUnit, а не в мс - PullRequest
0 голосов
/ 23 декабря 2019
[DEBUG] 2019-12-23 09:57:57.206 [o.a.c.c.f.FileConsumer|main|] Starting consumer: Consumer[file://target/customerInput/?delay=5&include=.*xml%24&move=InProcess&moveFailed=Failed&timeUnit=seconds]
[DEBUG] 2019-12-23 09:57:57.211 [o.a.c.i.e.BaseExecutorServiceManager|main|] Created new ScheduledThreadPool for source: Consumer[file://target/customerInput/?delay=5&include=.*xml%24&move=InProcess&moveFailed=Failed&timeUnit=seconds] with name: file://target/customerInput/?delay=5&include=.*xml%24&move=InProcess&moveFailed=Failed&timeUnit=seconds -> org.apache.camel.util.concurrent.SizedScheduledExecutorService@f99f5e0[file://target/customerInput/?delay=5&include=.*xml%24&move=InProcess&moveFailed=Failed&timeUnit=seconds]
[DEBUG] 2019-12-23 09:57:57.211 [o.a.c.s.DefaultScheduledPollConsumerScheduler|main|] Scheduling poll (fixed delay) with initialDelay: 1000, delay: 5 (seconds) for: file://target/customerInput/?delay=5&include=.*xml%24&move=InProcess&moveFailed=Failed&timeUnit=seconds
[INFO ] 2019-12-23 09:57:57.212 [o.a.c.i.DefaultCamelContext|main|] Route: route1 started and consuming from: file://target/customerInput/?delay=5&include=.*xml%24&move=InProcess&moveFailed=Failed&timeUnit=seconds
[INFO ] 2019-12-23 09:57:57.215 [o.a.c.i.DefaultCamelContext|main|] Total 1 routes, of which 1 are started
[INFO ] 2019-12-23 09:57:57.217 [o.a.c.i.DefaultCamelContext|main|] Apache Camel 3.0.0 (CamelContext: camel-1) started in 0.393 seconds
[INFO ] 2019-12-23 09:59:57.220 [o.a.c.i.DefaultCamelContext|main|] Apache Camel 3.0.0 (CamelContext: camel-1) is shutting down

Не указывать initialDelay в таких случаях следует рассматривать как сбой, я думаю.

...