Helper for subclass's #toString implementations. This is used by subclasses such as DeleteRequest or GetRequest, to avoid code duplication. @param classname The name of the class of the caller. @param family A possibly null family name. @param qualifier A possibly null co
(final String classname,
final byte[] family,
final byte[] qualifier,
final String fields)
| 820 | * @param fields Additional fields to include in the output. |
| 821 | */ |
| 822 | final String toStringWithQualifier(final String classname, |
| 823 | final byte[] family, |
| 824 | final byte[] qualifier, |
| 825 | final String fields) { |
| 826 | final StringBuilder buf = new StringBuilder(256 // min=181 |
| 827 | + fields.length()); |
| 828 | buf.append(classname).append("(table="); |
| 829 | Bytes.pretty(buf, table); |
| 830 | buf.append(", key="); |
| 831 | Bytes.pretty(buf, key); |
| 832 | buf.append(", family="); |
| 833 | Bytes.pretty(buf, family); |
| 834 | buf.append(", qualifier="); |
| 835 | Bytes.pretty(buf, qualifier); |
| 836 | buf.append(fields); |
| 837 | buf.append(", attempt=").append(attempt) |
| 838 | .append(", region="); |
| 839 | if (region == null) { |
| 840 | buf.append("null"); |
| 841 | } else { |
| 842 | region.toStringbuf(buf); |
| 843 | } |
| 844 | buf.append(')'); |
| 845 | return buf.toString(); |
| 846 | } |
| 847 | |
| 848 | /** @return a delay in ms before retrying the RPC based on the number of |
| 849 | * attempts made so far. It has a linear retry up to 1 second (4 attempts) |
no test coverage detected