ServiceRemotingCancellationHelper Class
- java.
lang. Object - microsoft.
servicefabric. services. remoting. runtime. ServiceRemotingCancellationHelper
- microsoft.
public class ServiceRemotingCancellationHelper
Provides cancellation support for remote method dispatching.
Constructor Summary
Constructor | Description | |
---|---|---|
ServiceRemotingCancellationHelper(String traceId) |
Method Summary
Modifier and Type | Method and Description |
---|---|
CompletableFuture<byte[]> |
cancelRequestAsync(int interfaceId, int methodId, String callContext)
Cancels the request asynchronously. |
CompletableFuture<byte[]> |
dispatchRequest(int interfaceId, int methodId, String callContext, Function<CancellationToken, CompletableFuture<byte[]>> dispatchFunc)
Dispatch request. |
boolean |
isCancellationRequest(ServiceRemotingMessageHeaders messageHeaders)
Returns true if it is a cancellation request. |
Constructor Details
ServiceRemotingCancellationHelper
public ServiceRemotingCancellationHelper(String traceId)
Parameters:
Method Details
cancelRequestAsync
public CompletableFuture
Cancels the request asynchronously.
Parameters:
Returns:
dispatchRequest
public CompletableFuture
Dispatch request.
Parameters:
Returns:
isCancellationRequest
public boolean isCancellationRequest(ServiceRemotingMessageHeaders messageHeaders)
Returns true if it is a cancellation request.
Parameters:
Returns:
Applies to
Azure SDK for Java