Class WriteLatencyAdjuster

java.lang.Object
com.google.appengine.api.datastore.dev.WriteLatencyAdjuster
All Implemented Interfaces:
DynamicLatencyAdjuster

public class WriteLatencyAdjuster extends Object implements DynamicLatencyAdjuster
DynamicLatencyAdjuster that adds the paxos penalty for writes and takes the fact that transactional puts and deletes are super-fast into account.
  • Constructor Details

    • WriteLatencyAdjuster

      public WriteLatencyAdjuster()
  • Method Details

    • adjust

      public int adjust(LocalRpcService service, Object request, int latencyMs)
      Specified by:
      adjust in interface DynamicLatencyAdjuster
      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.