/** * Update cache for the given node id * @param node The target node * @return The list of entries present on the specified node or an empty list. * @throws RepositoryException */ private Entries updateCache(NodeImpl node) throws RepositoryException { if ("T".equals(strategy)) { return throttledUpdateCache(node); } else if ("S".equals(strategy)) { return synchronizedUpdateCache(node); } else if ("P".equals(strategy)) { return parallelUpdateCache(node); } else { // panic throw new RuntimeException("invalid value for updateCacheStrategy: " + strategy); } }
/** * Update cache for the given node id * @param node The target node * @return The list of entries present on the specified node or an empty list. * @throws RepositoryException */ private Entries updateCache(NodeImpl node) throws RepositoryException { if ("T".equals(strategy)) { return throttledUpdateCache(node); } else if ("S".equals(strategy)) { return synchronizedUpdateCache(node); } else if ("P".equals(strategy)) { return parallelUpdateCache(node); } else { // panic throw new RuntimeException("invalid value for updateCacheStrategy: " + strategy); } }