]> gerrit.simantics Code Review - simantics/platform.git/blob - ClusterCollectorPolicy.java
728be146109d28cc4a86103583844e2c8b8b9f59
[simantics/platform.git] / 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 }