示例#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();
 }
示例#2
0
 @Override
 public void writeTo(DataOutput out) throws Exception {
   super.writeTo(out);
   out.writeLong(threadId);
 }
示例#3
0
 @Override
 public void readFrom(DataInput in) throws Exception {
   super.readFrom(in);
   threadId = in.readLong();
 }