]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db/src/org/simantics/db/service/ClusterCollectorPolicy.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / service / ClusterCollectorPolicy.java
diff --git a/bundles/org.simantics.db/src/org/simantics/db/service/ClusterCollectorPolicy.java b/bundles/org.simantics.db/src/org/simantics/db/service/ClusterCollectorPolicy.java
new file mode 100644 (file)
index 0000000..390092c
--- /dev/null
@@ -0,0 +1,18 @@
+package org.simantics.db.service;\r
+\r
+import java.util.Collection;\r
+\r
+public interface ClusterCollectorPolicy {\r
+\r
+       public interface CollectorCluster {\r
+               long getImportance();\r
+               long getClusterId();\r
+       }\r
+       \r
+       Collection<CollectorCluster> select(int desiredBytes);\r
+       Collection<CollectorCluster> select();\r
+       \r
+       void added(CollectorCluster cluster);\r
+       void removed(CollectorCluster cluster);\r
+       \r
+}\r