Class Request$


  • public class Request$
    extends java.lang.Object
    Class that can be used to set the request name.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Request$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Request$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String currentName()
      Return the current request name.
      <T> T withName​(java.lang.String requestName, scala.Function0<T> f)
      Used to wrap request sending with a request name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final Request$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • Request$

        public Request$()
    • Method Detail

      • currentName

        public java.lang.String currentName()
        Return the current request name.

        Returns:
        the current request name or "" if none is set
      • withName

        public <T> T withName​(java.lang.String requestName,
                              scala.Function0<T> f)
        Used to wrap request sending with a request name.

        Type Parameters:
        T - return type of the function
        Parameters:
        requestName - the request name
        f - the function to perform
        Returns:
        the result of evaluating f