private static Duration getTimeout(Inspector params, Duration defaultTimeout) {
        if (params.field("timeout").valid()) {
            return Duration.ofSeconds(params.field("timeout").asLong());
        } else {
            return defaultTimeout;
        }
    }
Parameters for preparing an application. Immutable.

@author Ulf Lilleengen
configserver/src/main/java/com/yahoo/vespa/config/server/session/PrepareParams.java