Skip to content

How to set timeouts? #31

@peeeto

Description

@peeeto

Hallo,

how could I please set timeouts in the client?

@Bean
    public OpenWeatherMapClient openWeatherClient() {
        OpenWeatherMapClient openWeatherClient = new OpenWeatherMapClient(KEY);
        openWeatherClient.setReadTimeout(1000L);//<---this is missing
        openWeatherClient.setConnectTimeout(1000L);//<---this is missing
        return openWeatherClient;
    }

Thanks.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions