Exemple #1
0
 public String toString() {
   StringBuilder sb = new StringBuilder();
   sb.append(current_owner);
   if (!queue.isEmpty()) {
     sb.append(", queue: ");
     for (Request req : queue) {
       sb.append(req.toStringShort()).append(" ");
     }
   }
   return sb.toString();
 }
Exemple #2
0
 @Override
 public void writeTo(DataOutput out) throws Exception {
   super.writeTo(out);
   out.writeLong(threadId);
 }
Exemple #3
0
 @Override
 public void readFrom(DataInput in) throws Exception {
   super.readFrom(in);
   threadId = in.readLong();
 }