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