.setFlowControlSettings( oldBatchSettings .getFlowControlSettings() .toBuilder() .setLimitExceededBehavior(LimitExceededBehavior.Block)
private BatchingCallSettings(Builder<RequestT, ResponseT> builder) { super(builder); this.batchingDescriptor = builder.batchingDescriptor; this.batchingSettings = Preconditions.checkNotNull(builder.batchingSettings); FlowController flowControllerToUse = builder.flowController; if (flowControllerToUse == null) { flowControllerToUse = new FlowController(batchingSettings.getFlowControlSettings()); } this.flowController = flowControllerToUse; }
private BatchingCallSettings(Builder<RequestT, ResponseT> builder) { super(builder); this.batchingDescriptor = builder.batchingDescriptor; this.batchingSettings = Preconditions.checkNotNull(builder.batchingSettings); FlowController flowControllerToUse = builder.flowController; if (flowControllerToUse == null) { flowControllerToUse = new FlowController(batchingSettings.getFlowControlSettings()); } this.flowController = flowControllerToUse; }
.build(); TrackedFlowController trackedFlowController = new TrackedFlowController(batchingSettings.getFlowControlSettings());
.setFlowControlSettings( oldBatchSettings .getFlowControlSettings() .toBuilder() .setLimitExceededBehavior(LimitExceededBehavior.Block)