Class InsightBuilder

java.lang.Object
io.grpc.internal.InsightBuilder

public final class InsightBuilder extends Object
Builds a concise and readable string that gives insight of the concerned part of the system. The resulted string is made up of a list of short strings, each of which gives out a piece of information.
  • Constructor Details

    • InsightBuilder

      public InsightBuilder()
  • Method Details

    • append

      public InsightBuilder append(@Nullable Object insight)
      Appends a piece of information which is a plain string. The given object is immediately converted to string and recorded.
    • appendKeyValue

      public InsightBuilder appendKeyValue(String key, @Nullable Object value)
      Appends a piece of information which is a key-value , which will be formatted into "key=value". Value's toString() or null is immediately recorded.
    • toString

      public String toString()
      Get the resulting string.
      Overrides:
      toString in class Object