ocean.util.app.ext.TaskExt

Extension to automate typical task scheduler setup.

Reads scheduler configuration from app config from SCHEDULER section, initializes global scheduler instance using it and provides a method to start main application method inside a task.

Expected configuration file format (all fields are optional):

SCHEDULER

worker_fiber_stack_size = 102400 worker_fiber_limit = 5 task_queue_limit = 10 suspended_task_limit = 16 specialized_pools = pkg.mod.MyTask:1024 pkg.mod.MyOtherTask:2048

Members

Classes

TaskExt
class TaskExt

ditto

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).