Tm1Timeouts
import io.skipcheck.tm1.client.session.Tm1Timeouts;How long the session waits, by kind of work. TM1 answers some calls only when the work is done, so one timeout for everything is either too short for processes or too long for a login.
// Let a request go two hours without data, for a long process run synchronously
Tm1Timeouts timeouts = Tm1Timeouts.builder().request(Duration.ofHours(2)).build();
A builder leaves unset values at the defaults below.
Members
Tm1Timeouts constructor | Checks that every timeout is set and positive (or, for refusedLogin, not negative). |
DEFAULTS static | The defaults. |
builder static | A builder starting from the defaults. |
toBuilder | A builder starting from these timeouts, to change some of them. |
toString | |
hashCode | |
equals | |
connect | |
login | |
request | |
close | |
refusedLogin |
Tm1Timeouts
constructorTm1Timeouts(Duration connect, Duration login, Duration request, Duration close, Duration refusedLogin) Checks that every timeout is set and positive (or, for refusedLogin, not
negative).
Throws
IllegalArgumentException- if a timeout is out of range
DEFAULTS
staticTm1Timeouts DEFAULTSThe defaults.
builder
staticstatic Tm1Timeouts.Builder builder()A builder starting from the defaults.
Returns
- a new builder
toBuilder
Tm1Timeouts.Builder toBuilder()A builder starting from these timeouts, to change some of them.
Returns
- a new builder
toString
String toString()hashCode
int hashCode()equals
boolean equals(Object o)connect
Duration connect()login
Duration login()request
Duration request()close
Duration close()refusedLogin
Duration refusedLogin()Also in the Javadoc.