summaryrefslogtreecommitdiff
path: root/same/src/main
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-23 15:02:08 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-23 15:02:08 +0100
commita5ae972e46ccaccc0b60d4ff218d3b7ece1108ba (patch)
tree643c53f7b37c1979a1eeb5d3db64ea22579f7158 /same/src/main
parentc4425e949d1942d7519046d276126dfab284b658 (diff)
Add ClientInterface.
Diffstat (limited to 'same/src/main')
-rw-r--r--same/src/main/java/com/orbekk/same/ClientInterface.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/same/src/main/java/com/orbekk/same/ClientInterface.java b/same/src/main/java/com/orbekk/same/ClientInterface.java
new file mode 100644
index 0000000..99adf21
--- /dev/null
+++ b/same/src/main/java/com/orbekk/same/ClientInterface.java
@@ -0,0 +1,8 @@
+package com.orbekk.same;
+
+public interface ClientInterface {
+ State getState();
+ void set(String name, String data, long revision) throws UpdateConflict;
+ void addStateListener(StateChangedListener listener);
+ void removeStateListener(StateChangedListener listener);
+} \ No newline at end of file