You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "wujimin (JIRA)" <ji...@apache.org> on 2019/04/20 00:56:00 UTC
[jira] [Updated] (SCB-1259) response type support Optional
[ https://issues.apache.org/jira/browse/SCB-1259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
wujimin updated SCB-1259:
-------------------------
Description:
both consumer and producer support:
# Optional<User> getUser()
# CompletableFuture<Optional<User>> getUser()
# ResponseEntity<Optional<User>> getUser()
# 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
was:
both consumer and producer support:
# Optional<User> getUser()
# CompletableFuture<Optional<User>> getUser()
# 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
> response type support Optional
> ------------------------------
>
> Key: SCB-1259
> URL: https://issues.apache.org/jira/browse/SCB-1259
> Project: Apache ServiceComb
> Issue Type: Improvement
> Components: Java-Chassis
> Reporter: wujimin
> Assignee: wujimin
> Priority: Major
>
> both consumer and producer support:
> # Optional<User> getUser()
> # CompletableFuture<Optional<User>> getUser()
> # ResponseEntity<Optional<User>> getUser()
> # 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
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)