Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-979 Ratis streaming
  3. RATIS-1406

Add an optional API to StateMachine.DataStream for providing an Executor

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • StateMachine, Streaming
    • None

    Description

      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.

          /**
           * @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;
          }
      

      Attachments

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h