/** * Sets the interval in milliseconds to wait before sending acknowledgements to the cache server * for events received from the server subscriptions. * * @param ackInterval number of milliseconds to wait before sending event acknowledgements. * @return a reference to <code>this</code> * @throws IllegalArgumentException if <code>ackInterval</code> is less than or equal to * <code>0</code>. */ public ClientCacheFactory setPoolSubscriptionAckInterval(int ackInterval) { getPoolFactory().setSubscriptionAckInterval(ackInterval); return this; }
f.setSubscriptionAckInterval(parseInt(v));
poolFactory.setSubscriptionAckInterval(subscriptionAckInterval);
pf.setSubscriptionEnabled(true); pf.setSubscriptionRedundancy(redundancy); pf.setSubscriptionAckInterval(1);
.thenAnswer(newSetter(statisticInterval, mockPoolFactory)); when(mockPoolFactory.setSubscriptionAckInterval(anyInt())) .thenAnswer(newSetter(subscriptionAckInterval, mockPoolFactory));
mockPoolFactory.setSubscriptionAckInterval(invocation.getArgument(0)); return clientCacheFactorySpy; }).when(clientCacheFactorySpy).setPoolSubscriptionAckInterval(anyInt());
it.setSocketConnectTimeout(this.socketConnectTimeout); it.setStatisticInterval(this.statisticInterval); it.setSubscriptionAckInterval(this.subscriptionAckInterval); it.setSubscriptionEnabled(this.subscriptionEnabled); it.setSubscriptionMessageTrackingTimeout(this.subscriptionMessageTrackingTimeout);
it.setSocketConnectTimeout(this.socketConnectTimeout); it.setStatisticInterval(this.statisticInterval); it.setSubscriptionAckInterval(this.subscriptionAckInterval); it.setSubscriptionEnabled(this.subscriptionEnabled); it.setSubscriptionMessageTrackingTimeout(this.subscriptionMessageTrackingTimeout);