You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Tsz-wo Sze (Jira)" <ji...@apache.org> on 2021/09/20 14:16:00 UTC
[jira] [Updated] (RATIS-1406) Add an optional API to
StateMachine.DataStream for providing an Executor
[ https://issues.apache.org/jira/browse/RATIS-1406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tsz-wo Sze updated RATIS-1406:
------------------------------
Summary: Add an optional API to StateMachine.DataStream for providing an Executor (was: Add an API to in StateMachine.DataStream for providing an optional Executor )
> Add an optional API to StateMachine.DataStream for providing an Executor
> -------------------------------------------------------------------------
>
> Key: RATIS-1406
> URL: https://issues.apache.org/jira/browse/RATIS-1406
> Project: Ratis
> Issue Type: New Feature
> Components: StateMachine, Streaming
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
>
> Currently, DataStreamManagement has a writeExecutor for executing the streaming tasks. In this JIRA, we propose to add an optional API to StateMachine.DataStream so that a StateMachine can choose to provide an Executor. Then the StateMachine can have more control on the thread management.
> The new API may look like below.
> {code}
> /**
> * @return an {@link Executor} for executing the streaming tasks of this stream.
> * If the returned value is null, the default {@link Executor} will be used.
> */
> default Executor getExecutor() {
> return null;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)