/** * A template method to actually create the factory * * @param hostName * @param port * @param remoteObjectPort * @param cacheManager * @param socketTimeoutMillis @return a crate CacheManagerPeerListener */ protected CacheManagerPeerListener doCreateCachePeerListener(String hostName, Integer port, Integer remoteObjectPort, CacheManager cacheManager, Integer socketTimeoutMillis) { try { return new RMICacheManagerPeerListener(hostName, port, remoteObjectPort, cacheManager, socketTimeoutMillis); } catch (UnknownHostException e) { throw new CacheException("Unable to create CacheManagerPeerListener. Initial cause was " + e.getMessage(), e); } } }
/** * A template method to actually create the factory * * @param hostName * @param port * @param remoteObjectPort * @param cacheManager * @param socketTimeoutMillis @return a crate CacheManagerPeerListener */ protected CacheManagerPeerListener doCreateCachePeerListener(String hostName, Integer port, Integer remoteObjectPort, CacheManager cacheManager, Integer socketTimeoutMillis) { try { return new RMICacheManagerPeerListener(hostName, port, remoteObjectPort, cacheManager, socketTimeoutMillis); } catch (UnknownHostException e) { throw new CacheException("Unable to create CacheManagerPeerListener. Initial cause was " + e.getMessage(), e); } } }
/** * A template method to actually create the factory * * @param hostName * @param port * @param remoteObjectPort * @param cacheManager * @param socketTimeoutMillis @return a crate CacheManagerPeerListener */ protected CacheManagerPeerListener doCreateCachePeerListener(String hostName, Integer port, Integer remoteObjectPort, CacheManager cacheManager, Integer socketTimeoutMillis) { try { return new RMICacheManagerPeerListener(hostName, port, remoteObjectPort, cacheManager, socketTimeoutMillis); } catch (UnknownHostException e) { throw new CacheException("Unable to create CacheManagerPeerListener. Initial cause was " + e.getMessage(), e); } } }
/** * A template method to actually create the factory * * @param hostName * @param port * @param remoteObjectPort * @param cacheManager * @param socketTimeoutMillis @return a crate CacheManagerPeerListener */ protected CacheManagerPeerListener doCreateCachePeerListener(String hostName, Integer port, Integer remoteObjectPort, CacheManager cacheManager, Integer socketTimeoutMillis) { try { return new RMICacheManagerPeerListener(hostName, port, remoteObjectPort, cacheManager, socketTimeoutMillis); } catch (UnknownHostException e) { throw new CacheException("Unable to create CacheManagerPeerListener. Initial cause was " + e.getMessage(), e); } } }