Add subscription cancelling
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / quelaton / UskSubscription.java
1 package net.pterodactylus.fcp.quelaton;
2
3 import java.util.concurrent.ExecutionException;
4
5 /**
6  * USK subscription object that is returned to the client application.
7  *
8  * @author <a href="mailto:bombe@freenetproject.org">David ‘Bombe’ Roden</a>
9  */
10 public interface UskSubscription {
11
12         String getUri();
13         void onUpdate(UskUpdater uskUpdater);
14         void cancel() throws ExecutionException, InterruptedException;
15
16         interface UskUpdater {
17
18                 void uskUpdated(int edition);
19
20         }
21
22 }