@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.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);
 }
Esempio n. 5
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);
 }
Esempio n. 6
0
 public void writePortable(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   writer.writeLong("t", timeoutMillis);
 }