Interface DynamicLatencyAdjuster
- All Known Implementing Classes:
DynamicLatencyAdjuster.Default,WriteLatencyAdjuster
public interface DynamicLatencyAdjuster
Adjusts local RPC latency using runtime information.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classDefault implementation of aDynamicLatencyAdjusterthat provides no adjustment. -
Method Summary
Modifier and TypeMethodDescriptionintadjust(LocalRpcService service, Object request, int latencyMs)
-
Method Details
-
adjust
- Parameters:
service- The service on which the rpc is being invoked.request- The request that was provided to the service.latencyMs- The latency to adjust.- Returns:
- The adjusted latency.
-