use of org.apache.geode.internal.cache.PoolFactoryImpl in project geode by apache.
the class DurableClientTestCase method getClientPool.
protected Pool getClientPool(String host, int serverPort, boolean establishCallbackConnection) {
PoolFactory pf = PoolManager.createFactory();
pf.addServer(host, serverPort).setSubscriptionEnabled(establishCallbackConnection).setSubscriptionAckInterval(1);
return ((PoolFactoryImpl) pf).getPoolAttributes();
}
use of org.apache.geode.internal.cache.PoolFactoryImpl in project geode by apache.
the class DurableRegistrationDUnitTest method getClientPool.
private Pool getClientPool(String host, int server1Port, int server2Port, boolean establishCallbackConnection, int redundancyLevel) {
PoolFactory pf = PoolManager.createFactory();
pf.addServer(host, server1Port).addServer(host, server2Port).setSubscriptionEnabled(establishCallbackConnection).setSubscriptionRedundancy(redundancyLevel);
return ((PoolFactoryImpl) pf).getPoolAttributes();
}
Aggregations