ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-4699) Introduce custom configurable executors.
Date Tue, 14 Feb 2017 14:23:41 GMT
Vladimir Ozerov created IGNITE-4699:

             Summary: Introduce custom configurable executors.
                 Key: IGNITE-4699
                 URL: https://issues.apache.org/jira/browse/IGNITE-4699
             Project: Ignite
          Issue Type: Task
          Components: compute
            Reporter: Vladimir Ozerov
             Fix For: 2.0

We need to provide a way to configure custom thread pools for user compute tasks. 

Proposed API:

1) Config
class ExecutorConfiguration {
    String name;
    int size;
2) Choosing executor for compute task:
IgniteCompute compute = Ignite.compute().withExecutor("my_exec");
3) Accessing raw executor (could be required for proper execution of future listeners):
ThreadPoolExecutor exec = ignite.compute().localExecutor("my_exec");

This message was sent by Atlassian JIRA

View raw message