From a5ae972e46ccaccc0b60d4ff218d3b7ece1108ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Thu, 23 Feb 2012 15:02:08 +0100 Subject: Add ClientInterface. --- same/src/main/java/com/orbekk/same/ClientInterface.java | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 same/src/main/java/com/orbekk/same/ClientInterface.java (limited to 'same/src/main/java') 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 -- cgit v1.2.3