Class QueryMessageSupplier

java.lang.Object
org.glowroot.agent.plugin.api.QueryMessageSupplier

public abstract class QueryMessageSupplier extends Object
A (lazy) supplier of QueryMessage instances. Needs to be thread safe since transaction thread creates it, but trace storage (and live viewing) is done in a separate thread.
  • Constructor Details

    • QueryMessageSupplier

      protected QueryMessageSupplier()
  • Method Details

    • get

      public abstract QueryMessage get()
      Returns the QueryMessage for a QueryEntry. The QueryMessage does not need to be thread safe if it is instantiated by the implementation of this method.
    • create

      public static QueryMessageSupplier create(String prefix, String suffix)
      Creates a QueryMessageSupplier for the specified prefix and suffix.
    • create

      public static QueryMessageSupplier create(String prefix)
      Creates a QueryMessageSupplier for the specified prefix.