Package net.devslash

Class Session

  • All Implemented Interfaces:

    
    public final class Session
    
                        

    A session that may be passed to the DSL engine to run. Generally these sessions should be created by SessionBuilder through the use of the runHttp block. Explicit instantiation should be reserved for testing only.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final List<Call<?>> getCalls() the list of Calls that will be part of this sessions run list.
      final Integer getConcurrency() the number of requests that can be in flight at the same time.
      final Long getDelay() a set wait time between calls.
      final RateLimitOptions getRateOptions() A global rate limit that is set for all calls within this session.
      • Methods inherited from class java.lang.Object

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

      • getCalls

         final List<Call<?>> getCalls()

        the list of Calls that will be part of this sessions run list. One call may involve many Http requests. A call will occur one after another. All requests in a call are guaranteed to have been completed before the next call begins

      • getConcurrency

         final Integer getConcurrency()

        the number of requests that can be in flight at the same time. Note that in flight includes the time taken to create the connection, as well as any time tied up in the after block processing.

      • getDelay

         final Long getDelay()

        a set wait time between calls.