All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.hotrod.impl.VersionedOperationResponse Maven / Gradle / Ivy

There is a newer version: 14.0.32.Final
Show newest version
package org.infinispan.hotrod.impl;

/**
* @author [email protected]
* @since 14.0
*/
public class VersionedOperationResponse {

   public enum RspCode {
      SUCCESS(true), NO_SUCH_KEY(false), MODIFIED_KEY(false);
      private boolean isModified;

      RspCode(boolean modified) {
         isModified = modified;
      }

      public boolean isUpdated() {
         return isModified;
      }
   }

   private V value;

   private RspCode code;


   public VersionedOperationResponse(V value, RspCode code) {
      this.value = value;
      this.code = code;
   }

   public V getValue() {
      return value;
   }

   public RspCode getCode() {
      return code;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy