Interface HelixGroupSelectionStrategy

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void finishRequest​(long requestId, int groupId)
      Notify the corresponding Helix Group that the request is completed, and the implementation will decide whether any cleanup is required or not.
      int getAvgGroupPendingRequest()
      Get the average of the pending requests among all the groups
      int getMaxGroupPendingRequest()
      Get the maximum of the pending requests among all the groups
      int getMinGroupPendingRequest()
      Get the minimum of the pending requests among all the groups
      int selectGroup​(long requestId, int groupCount)
      Select a Helix Group for the current request.
    • Method Detail

      • selectGroup

        int selectGroup​(long requestId,
                        int groupCount)
        Select a Helix Group for the current request.
      • finishRequest

        void finishRequest​(long requestId,
                           int groupId)
        Notify the corresponding Helix Group that the request is completed, and the implementation will decide whether any cleanup is required or not.
      • getMaxGroupPendingRequest

        int getMaxGroupPendingRequest()
        Get the maximum of the pending requests among all the groups
      • getMinGroupPendingRequest

        int getMinGroupPendingRequest()
        Get the minimum of the pending requests among all the groups
      • getAvgGroupPendingRequest

        int getAvgGroupPendingRequest()
        Get the average of the pending requests among all the groups