Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1303

CommandResult.getResponse should be typed

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.0
    • None
    • API
    • None

    Description

      Currently it returns a BsonDocument which may not be appropriate and should be generic and convertible to an expected type via a Decoder<T>.

       class CommandResult<T> {
            T getResponse()
       }
       
      class CommandReadOperation<T> {
             CommandResult<T> execute()
             ....

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            ross@mongodb.com Ross Lawley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: