IndexRequest request = (IndexRequest) item;
message.append(String.format("for key '%s'", request.id()));
message.append(String.format(" on index '%s'", request.index()));
message.append(String.format(" on type '%s'", request.type()));
} else if (item instanceof UpdateRequest) {
UpdateRequest request = (UpdateRequest) item;
message.append(String.format("for key '%s'", request.id()));
message.append(String.format(" on index '%s'", request.index()));
message.append(String.format(" on type '%s'", request.type()));
} else if (item instanceof DeleteRequest) {
DeleteRequest request = (DeleteRequest) item;
message.append(String.format("for key '%s'", request.id()));
message.append(String.format(" on index '%s'", request.index()));
message.append(String.format(" on type '%s'", request.type()));
}
message.append("],");
}
return message.toString();
}