Class Request


  • public class Request
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Request()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T withName​(java.lang.String requestName, java.util.function.Supplier<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
    • Constructor Detail

      • Request

        public Request()
    • Method Detail

      • withName

        public static <T> T withName​(java.lang.String requestName,
                                     java.util.function.Supplier<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