Package com.goodow.realtime.operation.map.json

Examples of com.goodow.realtime.operation.map.json.JsonMapComponent


    checkKey(key);
    T oldValue = this.<T> get(key);
    if (oldValue == null) {
      return null;
    }
    JsonMapComponent op = new JsonMapComponent(id, key, snapshot.getArray(key), null);
    consumeAndSubmit(op);
    return oldValue;
  }
View Full Code Here


    checkKey(key);
    JsonArray serializedValue = JsonSerializer.serializeObject(value);
    T oldObject = this.<T> get(key);
    JsonArray oldValue = snapshot.getArray(key);
    if (!JsonMapComponent.jsonEquals(oldValue, serializedValue)) {
      JsonMapComponent op = new JsonMapComponent(id, key, oldValue, serializedValue);
      consumeAndSubmit(op);
    }
    return oldObject;
  }
View Full Code Here

      snapshot.forEach(new MapIterator<JsonArray>() {
        int i = 1;

        @Override
        public void call(String key, JsonArray value) {
          toRtn[i++] = new JsonMapComponent(id, key, null, snapshot.getArray(key));
        }
      });
    }
    return toRtn;
  }
View Full Code Here

        public void call(String key, Object value) {
          JsonArray serializedValue = JsonSerializer.serializeObject(value);
          if (serializedValue == null) {
            return;
          }
          JsonMapComponent op = new JsonMapComponent(id, key, null, serializedValue);
          bridge.consumeAndSubmit(op);
        }
      });
    }
    endCompoundOperation();
View Full Code Here

TOP

Related Classes of com.goodow.realtime.operation.map.json.JsonMapComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.