]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.common/src/org/simantics/db/common/clustering/NoCollectingPolicy.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / clustering / NoCollectingPolicy.java
diff --git a/bundles/org.simantics.db.common/src/org/simantics/db/common/clustering/NoCollectingPolicy.java b/bundles/org.simantics.db.common/src/org/simantics/db/common/clustering/NoCollectingPolicy.java
new file mode 100644 (file)
index 0000000..8420ba3
--- /dev/null
@@ -0,0 +1,28 @@
+package org.simantics.db.common.clustering;\r
+\r
+import java.util.Collection;\r
+import java.util.Collections;\r
+\r
+import org.simantics.db.service.ClusterCollectorPolicy;\r
+\r
+public class NoCollectingPolicy implements ClusterCollectorPolicy {\r
+\r
+       @Override\r
+       public Collection<CollectorCluster> select(int desiredBytes) {\r
+               return Collections.emptyList();\r
+       }\r
+\r
+       @Override\r
+       public Collection<CollectorCluster> select() {\r
+               return Collections.emptyList();\r
+       }\r
+\r
+       @Override\r
+       public void added(CollectorCluster cluster) {\r
+       }\r
+\r
+       @Override\r
+       public void removed(CollectorCluster cluster) {\r
+       }\r
+\r
+}\r