package org.simantics.db.service; import java.util.concurrent.TimeUnit; /** * @author Tuukka Lehtonen * @author Hannu Niemistö * @since 1.24 */ public interface ServiceActivityMonitor { void registerActivity(Object id); void unregisterActivity(Object id); void waitForCompletion() throws InterruptedException; boolean waitForCompletion(long timeout, TimeUnit unit) throws InterruptedException; }