Added org.simantics.filesystem.services
[simantics/platform.git] / bundles / org.simantics.filesystem.services / src / org / simantics / filesystem / services / sizetracker / SizeTracker.java
1 package org.simantics.filesystem.services.sizetracker;
2
3 import java.io.Closeable;
4 import java.nio.file.Path;
5 import java.util.function.Consumer;
6
7 /**
8  * @author Tuukka Lehtonen
9  * @since 1.31.0
10  */
11 public interface SizeTracker extends Closeable {
12
13         Path path();
14         long size();
15
16         void addListener(Consumer<SizeChangeEvent> listener);
17         void removeListener(Consumer<SizeChangeEvent> listener);
18
19 }