Skip to content

Add dobbu util support for async callable feature. #3113

@khanimteyaz

Description

@khanimteyaz

Come up with some design and implementation for dubbo util support. The purpose of this enhancement is to provide utility methods which can help dubbo user to use and achieve the better API experience without enforcing service implementation to provide those support while they write service.

e.g.
If consumer of service needs to make a Future type of call then instead of service implementation can add those as feature, using Dubbo provided utility they can transfer Rpc call to future callable using something like

RpcFuture future=DubboRpcUti.toFuture(someService.someMethod(msg),someNotifyMethod);

DubboRpcUril.call(someUserService.getUser(org)).process(businessLogicMethod).onException(UserNotAvailable.class,handleUserNotAvailable)

Above are not exhaustive list or final, but the idea is this is an place holder for coming up with some approach, design and implementation.

  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: xxx
  • Operating System version: xxx
  • Java version: xxx

Steps to reproduce this issue

  1. xxx
  2. xxx
  3. xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps?

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions