ServiceRemotingCancellationHelper.dispatchRequest(int interfaceId, int methodId, String callContext, Function<CancellationToken, CompletableFuture<byte[]>> dispatchFunc) 方法
定义
Dispatch request.
public CompletableFuture<byte[]> dispatchRequest(int interfaceId, int methodId, String callContext, Function<CancellationToken, CompletableFuture<byte[]>> dispatchFunc)
参数
- interfaceId
- int
The interface id of the remote interface
- methodId
- int
The methodId of the remote method
- callContext
- String
callContext.
- dispatchFunc
- Function<CancellationToken, CompletableFuture<byte[]>>
dispatch function.
返回
CompletableFuture<byte[]>
returns a Completable future.