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.
-
-
Field Summary
Fields Modifier and Type Field Description private final List<Call<?>>
calls
private final Integer
concurrency
private final Long
delay
private final RateLimitOptions
rateOptions
-
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. -
-
Constructor Detail
-
Session
Session(List<Call<?>> calls, Integer concurrency, Long delay, RateLimitOptions rateOptions)
-
-
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.
-
getRateOptions
final RateLimitOptions getRateOptions()
A global rate limit that is set for all calls within this session. It may be overwritten by a more specific use of Call.rateOptions
-
-
-
-