Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-1091

Refactor RaftClient APIs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • client
    • None

    Description

      The methods in RaftClient fall into different categories

      1. group management: groupAdd, groupRemove, getGroupList and getGroupInfo
      2. blocking methods: send, sendReadOnly, sendStaleRead and sendWatch
      3. async methods: sendAsync, sendReadOnlyAsync, sendStaleReadAsync and sendWatchAsync

      It is better to move the related methods to its own interfaces such as

      1. GroupManagementApi
      2. BlockingApi
      3. AsyncApi

      Attachments

        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 - 2h 50m
                2h 50m