你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MethodDispatcher Interface

public interface MethodDispatcher

This interface defines api to handle dispatches requests from the client to the interface/method of the remoted object.

Method Summary

Modifier and Type Method and Description
void dispatch(Object objectImplementation, int methodId, Object requestBody)
CompletableFuture<Object> dispatchAsync(Object objectImplementation, int methodId, Object requestBody, CancellationToken cancellationToken)
int getInterfaceId()
String getMethodName(int methodId)

Method Details

dispatch

public void dispatch(Object objectImplementation, int methodId, Object requestBody)

Parameters:

objectImplementation
methodId
requestBody

dispatchAsync

public CompletableFuture dispatchAsync(Object objectImplementation, int methodId, Object requestBody, CancellationToken cancellationToken)

Parameters:

objectImplementation
methodId
requestBody
cancellationToken

getInterfaceId

public int getInterfaceId()

getMethodName

public String getMethodName(int methodId)

Parameters:

methodId

Applies to