ServiceRemotingCancellationHelper 类

定义

Provides cancellation support for remote method dispatching.

public class ServiceRemotingCancellationHelper
继承
java.lang.Object
ServiceRemotingCancellationHelper

构造函数

ServiceRemotingCancellationHelper(String traceId)

方法

cancelRequestAsync(int interfaceId, int methodId, String callContext)

Cancels the request asynchronously.

dispatchRequest(int interfaceId, int methodId, String callContext, Function<CancellationToken, CompletableFuture<byte[]>> dispatchFunc)

Dispatch request.

isCancellationRequest(ServiceRemotingMessageHeaders messageHeaders)

Returns true if it is a cancellation request.

适用于