Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-1259

response type support Optional

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Done
    • None
    • java-chassis-1.2.1
    • Java-Chassis
    • None

    Description

      both consumer and producer support:

      1. Optional<User> getUser()
      2. CompletableFuture<Optional<User>> getUser()
      3. ResponseEntity<Optional<User>> getUser()
      4. CompletableFuture<ResponseEntity<Optional<User>>> getUser()

      although Optional is no meaning to the producer, but sometimes, consumer and producer share the same interface in shared jar

      Attachments

        Issue Links

          Activity

            People

              wujimin Jimin Wu
              wujimin Jimin Wu
              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 - 20m
                  20m