in src/main/java/com/awsblog/queueing/model/QueueStats.java [107:142]
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(String.format("Queue statistics:%n"));
sb.append(String.format(" >> Total records in the queue: %d%n", this.getTotalRecordsInQueue()));
if (!this.first100IDsInQueue.isEmpty()) {
sb.append(" >>> IDs in the queue: { ");
int count = 0;
for(String id : this.first100IDsInQueue) {
if (count++ > 0) sb.append(", ");
sb.append(id);
}
sb.append(String.format(" }%n"));
}
sb.append(String.format(" >>> Records in processing: %d%n", this.getTotalRecordsInProcessing()));
if (!this.first100SelectedIDsInQueue.isEmpty()) {
sb.append(" >>> Selected IDs in the queue: { ");
int count = 0;
for(String id : this.first100SelectedIDsInQueue) {
if (count++ > 0) sb.append(", ");
sb.append(id);
}
sb.append(String.format(" }%n"));
}
sb.append(String.format(" >>> Records in queue but not in processing: %d%n", this.getTotalRecordsNotStarted()));
return sb.toString();
}