skipcheck

TM1 client · Docs · Sessions and logins

Tm1Timeouts.Builder

from skipcheck_tm1 import Tm1Timeouts.Builder

Builds Tm1Timeouts. Written by hand rather than with Lombok's @Builder, so its methods can carry Javadoc.

Members

__init__ constructor
connectSets the connect timeout.
loginSets the login timeout.
requestSets the request idle timeout.
closeSets the close timeout.
refused_loginSets how long a refused login is remembered.
buildThe timeouts, with unset values at the defaults.

__init__

constructor
__init__(start: Tm1Timeouts)

connect

connect(value: float | timedelta) -> Tm1Timeouts.Builder

Sets the connect timeout: how long to wait for a connection, including TLS.

login

login(value: float | timedelta) -> Tm1Timeouts.Builder

Sets the login timeout: how long to wait for a login response, and, before that, for the authenticator to supply the credentials.

request

request(value: float | timedelta) -> Tm1Timeouts.Builder

Sets the request idle timeout: how long a request may go without receiving any data.

close

close(value: float | timedelta) -> Tm1Timeouts.Builder

Sets the close timeout: how long to wait for TM1 to close the session.

refused_login

refused_login(value: float | timedelta) -> Tm1Timeouts.Builder

Sets how long a refused login is remembered: how long requests fail at once after TM1 refused a login; zero to log in again straight away.

build

build() -> Tm1Timeouts

The timeouts, with unset values at the defaults.