spring integration - Behaviour of multiple inbound channel adapters/pollers in a single context -


i have spring integration context multiple inbound channel adapters, each own poller (currently pollers have refresh time configured fixed-delay may use fixed-rate in future). inbound adapters output produced messages same processing chain. question behaviour of polling , message consuming in such situation? imagine, poller #1 has produced 1000 messages , handed processing chain. since processing can take significant time possible has come time poller #2 job , possibly produce messages. remeber - processing chain still handling messages passed poller #1. happens?

  1. poller #2 not run @ until poller #1 messages processed.
  2. poller #2 run (but how run if have 1 thread?), messages stored later use when poller #1 messages processed.
  3. processing initiated poller #1 interrupted, poller #2 run, produced messages passed processing chain immediately.
  4. some other answer

note channels direct channels , there no task executors used.

pollers independent tasks handled common taskscheduler bean; long task scheduler has sufficient threads, there no coordination across pollers.

if pool exhausted, pollers run "late".

by default taskscheduler has 10 threads; can reconfigure it.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -