Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
public interface PoolService {
  // this will delegate to PoolManager.createFactory 
  PoolFactory createPoolFactory();   
  
  //Delegates to PoolManager.find
  Pool find(String name) {
   
  //Delegates to PoolManager.getAll
  Map<String, Pool> getAll();

  //The close methods of PoolManager will not  be present in PoolService
  //The lifecycle of PoolService is tied to the cache 
}

public interface ClientCache  {
  ...
  PoolService getPoolService();
}


One wrinkle is that it is currently possible to create pools and associate them with regions of a Cache, rather than a ClientCache. Cache is intended to be used for server side, peer to peer Caches, which generally don't also have client pools. For that reason, PoolService will only be available on ClientCache.

Performance Impact

n/a

Backwards Compatibility and Upgrade Path

...