OSDN Git Service

完了、キャンセル、エラーを通知するインタフェース追加
[coroid/inqubus.git] / frontend / src / saccubus / worker / WorkerListener.java
index 36f7e1b..2749d6d 100644 (file)
@@ -4,7 +4,13 @@ package saccubus.worker;
  *
  * @author yuki
  */
-public interface WorkerListener<V> {
+public interface WorkerListener<T, V> {
 
     void process(V progress);
+
+    void cancelled();
+
+    void done(T result);
+
+    void error(Throwable th);
 }