CallIdSequence newCallIdSequence() { return CallIdFactory.newCallIdSequence(enabled, maxConcurrentInvocations, backoffTimeoutMs); }
CallIdSequence newCallIdSequence() { return CallIdFactory.newCallIdSequence(enabled, maxConcurrentInvocations, backoffTimeoutMs); }
public AbstractClientInvocationService(HazelcastClientInstanceImpl client) { this.client = client; this.invocationLogger = client.getLoggingService().getLogger(ClientInvocationService.class); this.invocationTimeoutMillis = initInvocationTimeoutMillis(); this.invocationRetryPauseMillis = initInvocationRetryPauseMillis(); this.responseHandlerSupplier = new ClientResponseHandlerSupplier(this); HazelcastProperties properties = client.getProperties(); int maxAllowedConcurrentInvocations = properties.getInteger(MAX_CONCURRENT_INVOCATIONS); long backofftimeoutMs = properties.getLong(BACKPRESSURE_BACKOFF_TIMEOUT_MILLIS); boolean isBackPressureEnabled = maxAllowedConcurrentInvocations != Integer.MAX_VALUE; callIdSequence = CallIdFactory .newCallIdSequence(isBackPressureEnabled, maxAllowedConcurrentInvocations, backofftimeoutMs); client.getMetricsRegistry().scanAndRegister(this, "invocations"); }
public AbstractClientInvocationService(HazelcastClientInstanceImpl client) { this.client = client; this.invocationLogger = client.getLoggingService().getLogger(ClientInvocationService.class); this.invocationTimeoutMillis = initInvocationTimeoutMillis(); this.invocationRetryPauseMillis = initInvocationRetryPauseMillis(); this.responseHandlerSupplier = new ClientResponseHandlerSupplier(this); HazelcastProperties properties = client.getProperties(); int maxAllowedConcurrentInvocations = properties.getInteger(MAX_CONCURRENT_INVOCATIONS); long backofftimeoutMs = properties.getLong(BACKPRESSURE_BACKOFF_TIMEOUT_MILLIS); // clients needs to have a call id generator capable of determining how many // pending calls there are. So backpressure needs to be on this.callIdSequence = CallIdFactory .newCallIdSequence(true, maxAllowedConcurrentInvocations, backofftimeoutMs); client.getMetricsRegistry().scanAndRegister(this, "invocations"); }