[infinispan-commits] Infinispan SVN: r1808 - trunk/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/protocol.

infinispan-commits at lists.jboss.org infinispan-commits at lists.jboss.org
Tue May 18 12:02:18 EDT 2010


Author: mircea.markus
Date: 2010-05-18 12:02:16 -0400 (Tue, 18 May 2010)
New Revision: 1808

Added:
   trunk/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/protocol/HotRodOperations.java
Removed:
   trunk/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/protocol/HotrodOperations.java
Log:
renamed on the server

Copied: trunk/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/protocol/HotRodOperations.java (from rev 1807, trunk/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/protocol/HotrodOperations.java)
===================================================================
--- trunk/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/protocol/HotRodOperations.java	                        (rev 0)
+++ trunk/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/protocol/HotRodOperations.java	2010-05-18 16:02:16 UTC (rev 1808)
@@ -0,0 +1,68 @@
+package org.infinispan.client.hotrod.impl.protocol;
+
+
+import org.infinispan.client.hotrod.Flag;
+import org.infinispan.client.hotrod.impl.BinaryVersionedValue;
+import org.infinispan.client.hotrod.impl.VersionedOperationResponse;
+
+import java.util.Map;
+
+/**
+ * Defines the hotrod operations as described in the protocol spec: http://community.jboss.org/wiki/HotRodProtocol
+ *
+ * - TODO - enforce encoding and add such tests
+ *
+ * @author Mircea.Markus at jboss.com
+ * @since 4.1
+ */
+public interface HotrodOperations {
+
+   public byte[] get(byte[] key, Flag... flags);
+
+   public byte[] remove(byte[] key, Flag... flags);
+
+   public boolean containsKey(byte[] key, Flag... flags);
+
+   /**
+    * Returns null if the given key does not exist.
+    */
+   public BinaryVersionedValue getWithVersion(byte[] key, Flag... flags);
+
+   /**
+    * @param lifespan number of seconds that a entry during which the entry is allowed to life.
+    * If number of seconds is bigger than 30 days, this number of seconds is treated as UNIX time and so, represents
+    * the number of seconds since 1/1/1970. If set to 0, lifespan is unlimited.
+    * @param maxIdle Number of seconds that a entry can be idle before it's evicted from the cache. If 0, no max
+    * @param flags
+    */
+   public byte[] put(byte[] key, byte[] value, int lifespan, int maxIdle, Flag... flags);
+
+   /**
+    * @param lifespan same as in {@link #put(byte[],byte[],int,int,org.infinispan.client.hotrod.Flag...)}
+    * @param maxIdle same as in {@link #put(byte[],byte[],int,int,org.infinispan.client.hotrod.Flag...)}
+    * @param flags
+    */
+   public byte[] putIfAbsent(byte[] key, byte[] value, int lifespan, int maxIdle, Flag... flags);
+
+   /**
+    * @param lifespan same as in {@link #put(byte[],byte[],int,int,org.infinispan.client.hotrod.Flag...)}
+    * @param maxIdle same as in {@link #put(byte[],byte[],int,int,org.infinispan.client.hotrod.Flag...)}
+    * @param flags
+    */
+   public byte[] replace(byte[] key, byte[] value, int lifespan, int maxIdle, Flag... flags);
+
+   /**
+    * @param lifespan same as in {@link #put(byte[],byte[],int,int,org.infinispan.client.hotrod.Flag...)}
+    * @param maxIdle same as in {@link #put(byte[],byte[],int,int,org.infinispan.client.hotrod.Flag...)}
+    * @param flags
+    */
+   public VersionedOperationResponse replaceIfUnmodified(byte[] key, byte[] value, int lifespan, int maxIdle, long version, Flag... flags);
+
+   public VersionedOperationResponse removeIfUnmodified(byte[] key, long version, Flag... flags);
+
+   public void clear(Flag... flags);
+
+   public Map<String, String> stats();
+
+   public boolean ping();
+}

Deleted: trunk/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/protocol/HotrodOperations.java
===================================================================
--- trunk/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/protocol/HotrodOperations.java	2010-05-18 15:43:29 UTC (rev 1807)
+++ trunk/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/impl/protocol/HotrodOperations.java	2010-05-18 16:02:16 UTC (rev 1808)
@@ -1,68 +0,0 @@
-package org.infinispan.client.hotrod.impl.protocol;
-
-
-import org.infinispan.client.hotrod.Flag;
-import org.infinispan.client.hotrod.impl.BinaryVersionedValue;
-import org.infinispan.client.hotrod.impl.VersionedOperationResponse;
-
-import java.util.Map;
-
-/**
- * Defines the hotrod operations as described in the protocol spec: http://community.jboss.org/wiki/HotRodProtocol
- *
- * - TODO - enforce encoding and add such tests
- *
- * @author Mircea.Markus at jboss.com
- * @since 4.1
- */
-public interface HotrodOperations {
-
-   public byte[] get(byte[] key, Flag... flags);
-
-   public byte[] remove(byte[] key, Flag... flags);
-
-   public boolean containsKey(byte[] key, Flag... flags);
-
-   /**
-    * Returns null if the given key does not exist.
-    */
-   public BinaryVersionedValue getWithVersion(byte[] key, Flag... flags);
-
-   /**
-    * @param lifespan number of seconds that a entry during which the entry is allowed to life.
-    * If number of seconds is bigger than 30 days, this number of seconds is treated as UNIX time and so, represents
-    * the number of seconds since 1/1/1970. If set to 0, lifespan is unlimited.
-    * @param maxIdle Number of seconds that a entry can be idle before it's evicted from the cache. If 0, no max
-    * @param flags
-    */
-   public byte[] put(byte[] key, byte[] value, int lifespan, int maxIdle, Flag... flags);
-
-   /**
-    * @param lifespan same as in {@link #put(byte[],byte[],int,int,org.infinispan.client.hotrod.Flag...)}
-    * @param maxIdle same as in {@link #put(byte[],byte[],int,int,org.infinispan.client.hotrod.Flag...)}
-    * @param flags
-    */
-   public byte[] putIfAbsent(byte[] key, byte[] value, int lifespan, int maxIdle, Flag... flags);
-
-   /**
-    * @param lifespan same as in {@link #put(byte[],byte[],int,int,org.infinispan.client.hotrod.Flag...)}
-    * @param maxIdle same as in {@link #put(byte[],byte[],int,int,org.infinispan.client.hotrod.Flag...)}
-    * @param flags
-    */
-   public byte[] replace(byte[] key, byte[] value, int lifespan, int maxIdle, Flag... flags);
-
-   /**
-    * @param lifespan same as in {@link #put(byte[],byte[],int,int,org.infinispan.client.hotrod.Flag...)}
-    * @param maxIdle same as in {@link #put(byte[],byte[],int,int,org.infinispan.client.hotrod.Flag...)}
-    * @param flags
-    */
-   public VersionedOperationResponse replaceIfUnmodified(byte[] key, byte[] value, int lifespan, int maxIdle, long version, Flag... flags);
-
-   public VersionedOperationResponse removeIfUnmodified(byte[] key, long version, Flag... flags);
-
-   public void clear(Flag... flags);
-
-   public Map<String, String> stats();
-
-   public boolean ping();
-}



More information about the infinispan-commits mailing list