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 Link icon

    • InsightBuilder Link icon

      public InsightBuilder()
  • Method Details Link icon

    • append Link icon

      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 Link icon

      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 Link icon

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