Commit 94ef7513 authored by Lukáš Marek's avatar Lukáš Marek

Small perf. improvement to ATEManager

parent 197d34f0
package ch.usi.dag.dislreserver.msg.analyze.mtdispatch;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.BlockingQueue;
......@@ -40,10 +39,9 @@ class ATEManager {
* Retrieves all live executors
public Collection<AnalysisTaskExecutor> getAllLiveExecutors() {
public Iterable<AnalysisTaskExecutor> getAllLiveExecutors() {
// return copy
return new ArrayList<AnalysisTaskExecutor>(liveExecutors.values());
return Collections.unmodifiableCollection(liveExecutors.values());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment