/** * Finds all the nodes that need to be fetched. Those are nodes that have no * data, and are not in fetch mode. */ private List<NodeEntry<T>> findNodesToFetch(Map<String, NodeEntry<T>> shardCache) { List<NodeEntry<T>> nodesToFetch = new ArrayList<>(); for (NodeEntry<T> nodeEntry : shardCache.values()) { if (nodeEntry.hasData() == false && nodeEntry.isFetching() == false) { nodesToFetch.add(nodeEntry); } } return nodesToFetch; }
/** * Finds all the nodes that need to be fetched. Those are nodes that have no * data, and are not in fetch mode. */ private List<NodeEntry<T>> findNodesToFetch(Map<String, NodeEntry<T>> shardCache) { List<NodeEntry<T>> nodesToFetch = new ArrayList<>(); for (NodeEntry<T> nodeEntry : shardCache.values()) { if (nodeEntry.hasData() == false && nodeEntry.isFetching() == false) { nodesToFetch.add(nodeEntry); } } return nodesToFetch; }
/** * Finds all the nodes that need to be fetched. Those are nodes that have no * data, and are not in fetch mode. */ private List<NodeEntry<T>> findNodesToFetch(Map<String, NodeEntry<T>> shardCache) { List<NodeEntry<T>> nodesToFetch = new ArrayList<>(); for (NodeEntry<T> nodeEntry : shardCache.values()) { if (nodeEntry.hasData() == false && nodeEntry.isFetching() == false) { nodesToFetch.add(nodeEntry); } } return nodesToFetch; }
/** * Finds all the nodes that need to be fetched. Those are nodes that have no * data, and are not in fetch mode. */ private Set<NodeEntry<T>> findNodesToFetch(Map<String, NodeEntry<T>> shardCache) { Set<NodeEntry<T>> nodesToFetch = new HashSet<>(); for (NodeEntry<T> nodeEntry : shardCache.values()) { if (nodeEntry.hasData() == false && nodeEntry.isFetching() == false) { nodesToFetch.add(nodeEntry); } } return nodesToFetch; }
Throwable getFailure() { assert hasData() : "getting failure when data has not been fetched"; return failure; }
/** * Finds all the nodes that need to be fetched. Those are nodes that have no * data, and are not in fetch mode. */ private List<NodeEntry<T>> findNodesToFetch(Map<String, NodeEntry<T>> shardCache) { List<NodeEntry<T>> nodesToFetch = new ArrayList<>(); for (NodeEntry<T> nodeEntry : shardCache.values()) { if (nodeEntry.hasData() == false && nodeEntry.isFetching() == false) { nodesToFetch.add(nodeEntry); } } return nodesToFetch; }
Throwable getFailure() { assert hasData() : "getting failure when data has not been fetched"; return failure; }
Throwable getFailure() { assert hasData() : "getting failure when data has not been fetched"; return failure; }
Throwable getFailure() { assert hasData() : "getting failure when data has not been fetched"; return failure; }
Throwable getFailure() { assert hasData() : "getting failure when data has not been fetched"; return failure; }