@Override
 public void write(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeLong("threadId", threadId);
   final ObjectDataOutput out = writer.getRawDataOutput();
   out.writeData(key);
 }
 @Override
 public void write(PortableWriter writer) throws IOException {
   super.write(writer);
   writer.writeLong("ttlMillis", ttlMillis);
   ObjectDataOutput out = writer.getRawDataOutput();
   out.writeData(key);
   out.writeData(value);
 }
 @Override
 public void writePortable(PortableWriter out) throws IOException {
   out.writeUTF("key", key);
   out.writeUTF("stringVal", stringVal);
   out.writeDouble("doubleVal", doubleVal);
   out.writeLong("longVal", longVal);
   out.writeInt("intVal", intVal);
 }
  @Override
  public void write(PortableWriter writer) throws IOException {
    writer.writeLong("tid", threadId);
    writer.writeLong("ttl", ttl);
    writer.writeLong("timeout", timeout);

    ObjectDataOutput out = writer.getRawDataOutput();
    out.writeData(key);
  }
 @Override
 public void write(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeInt("size", keys.size());
   ObjectDataOutput output = writer.getRawDataOutput();
   for (Data key : keys) {
     key.writeData(output);
   }
   output.writeObject(processor);
 }
 public void writePortable(PortableWriter writer) throws IOException {
   writer.writeInt("s", entrySet.size());
   final ObjectDataOutput out = writer.getRawDataOutput();
   for (Map.Entry<Data, Data> entry : entrySet) {
     Data key = entry.getKey();
     Data value = entry.getValue();
     key.writeData(out);
     value.writeData(out);
   }
 }
 public void write(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeInt("size", keys.size());
   if (!keys.isEmpty()) {
     ObjectDataOutput out = writer.getRawDataOutput();
     for (Data key : keys) {
       out.writeData(key);
     }
   }
 }
Esempio n. 8
0
 public void writePortable(PortableWriter writer) throws IOException {
   writer.writeByte("b", b);
   writer.writeBoolean("bool", bool);
   writer.writeChar("c", c);
   writer.writeShort("s", s);
   writer.writeInt("i", i);
   writer.writeLong("l", l);
   writer.writeFloat("f", f);
   writer.writeDouble("d", d);
   writer.writeUTF("str", str);
 }
 @Override
 public void write(PortableWriter writer) throws IOException {
   super.write(writer);
   ObjectDataOutput out = writer.getRawDataOutput();
   out.writeObject(key);
 }
 public void write(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeBoolean("i", includeValue);
   writer.writeUTF("s", serviceName);
 }
 @Override
 public void write(PortableWriter writer) throws IOException {
   super.write(writer);
   writer.writeBoolean("o", onePhase);
 }
Esempio n. 12
0
 public void writePortable(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeLong("t", timeoutMillis);
 }
Esempio n. 13
0
 @Override
 public void write(PortableWriter writer) throws IOException {
   super.write(writer);
   writer.writeInt("m", maxSize);
 }
Esempio n. 14
0
 public void writePortable(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeInt("p", permitCount);
 }
 public void write(PortableWriter writer) throws IOException {
   super.write(writer);
   final ObjectDataOutput out = writer.getRawDataOutput();
   key.writeData(out);
 }
Esempio n. 16
0
 public void writePortable(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeUTF("m", message);
   writer.writeUTF("d", details);
   writer.writeInt("t", type);
 }
Esempio n. 17
0
 public void writePortable(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeInt("t", threadId);
   final ObjectDataOutput out = writer.getRawDataOutput();
   key.writeData(out);
 }
 public void writePortable(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
 }
Esempio n. 19
0
 public void writePortable(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeUTF("a", attribute);
   writer.writeBoolean("o", ordered);
 }
 @Override
 public void write(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   final ObjectDataOutput out = writer.getRawDataOutput();
   key.writeData(out);
 }
Esempio n. 21
0
 public void writePortable(PortableWriter writer) throws IOException {
   super.writePortable(writer);
   writer.writeInt("i", index);
   value.writeData(writer.getRawDataOutput());
 }