@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 write(PortableWriter writer) throws IOException {
    writer.writeLong("tid", threadId);
    writer.writeLong("ttl", ttl);
    writer.writeLong("timeout", timeout);

    ObjectDataOutput out = writer.getRawDataOutput();
    out.writeData(key);
  }
Ejemplo n.º 4
0
 @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);
 }
Ejemplo n.º 5
0
 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);
     }
   }
 }
 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);
   }
 }
Ejemplo n.º 7
0
 @Override
 public void write(PortableWriter writer) throws IOException {
   writer.writeUTF("n", name);
   final ObjectDataOutput out = writer.getRawDataOutput();
   key.writeData(out);
 }
 @Override
 public void write(PortableWriter writer) throws IOException {
   super.write(writer);
   ObjectDataOutput out = writer.getRawDataOutput();
   out.writeObject(key);
 }
Ejemplo n.º 9
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 write(PortableWriter writer) throws IOException {
   super.write(writer);
   final ObjectDataOutput out = writer.getRawDataOutput();
   key.writeData(out);
 }
Ejemplo n.º 11
0
 public void writePortable(PortableWriter writer) throws IOException {
   super.writePortable(writer);
   writer.writeInt("i", index);
   value.writeData(writer.getRawDataOutput());
 }