]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db/src/org/simantics/db/service/ClusterCollectorPolicy.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / service / ClusterCollectorPolicy.java
1 package org.simantics.db.service;
2
3 import java.util.Collection;
4
5 public interface ClusterCollectorPolicy {
6
7         public interface CollectorCluster {
8                 long getImportance();
9                 long getClusterId();
10         }
11         
12         Collection<CollectorCluster> select(int desiredBytes);
13         Collection<CollectorCluster> select();
14         
15         void added(CollectorCluster cluster);
16         void removed(CollectorCluster cluster);
17         
18 }