]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.db/src/org/simantics/db/service/ServiceActivityMonitor.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.db / src / org / simantics / db / service / ServiceActivityMonitor.java
1 package org.simantics.db.service;
2
3 import java.util.concurrent.TimeUnit;
4
5 /**
6  * @author Tuukka Lehtonen
7  * @author Hannu Niemistö
8  * @since 1.24
9  */
10 public interface ServiceActivityMonitor {
11
12     void registerActivity(Object id);
13     void unregisterActivity(Object id);
14
15     void waitForCompletion() throws InterruptedException;
16     boolean waitForCompletion(long timeout, TimeUnit unit) throws InterruptedException;
17
18 }