-
Added new key properties:
-
For any
AbstractMessageReceiver
based componentSCHEDULER_THREADS_PROP_KEY
(scheduler-threads) is used to set number of treads used by internal component timer. -
For S2S component
CID_CONNECTIONS_TASKS_THREADS_KEY
(cid-connections-tasks-threads) is used to set number of threads used by timer used inCIDConnections
class.
Added new method
schedulerThreads()
to classAbstractMessageReceiver
which should return default number of threads to use for internal component timer. This method should be overridden in component which is known to need other number of threads than default. -
Type |
Task
|
Priority |
Normal
|
Assignee | |
RedmineID |
1195
|
Version |
tigase-server-5.2.0
|
Issue Votes (0)
Watchers (0)
Timer class uses only one thread to process all queued timer task, which may be bottleneck in some cases.
Replacing Timer class with implementation of ScheduledExecutorService will allow to associate more than one thread to process TimerTasks.