Uses of Class
energy.trolie.client.TrolieClientBuilder
Packages that use TrolieClientBuilder
-
Uses of TrolieClientBuilder in energy.trolie.client
Methods in energy.trolie.client that return TrolieClientBuilderModifier and TypeMethodDescriptionTrolieClientBuilder.bufferSize
(int bufferSize) Override the buffer size used in Java BufferedInputStreams and BufferedOutputStreams to optimize performance.static TrolieClientBuilder
TrolieClient.builder
(String baseUrl, org.apache.hc.client5.http.impl.classic.CloseableHttpClient httpClient) Initializes a new builder.Overrides the ETag Store used to cache the version of data stored by this system.TrolieClientBuilder.forecastRatingsPollMs
(int forecastRatingsPollMs) Sets the period at whichTrolieClient.subscribeToInUseLimitForecastUpdates(ForecastSnapshotSubscribedReceiver)
and similar methods for forecast ratings poll for new ratings.TrolieClientBuilder.httpHeaders
(Map<String, String> httpHeaders) Allows for additional headers to be passed with every request.TrolieClientBuilder.monitoringSetPollMs
(int monitoringSetPollMs) Sets the period at whichTrolieClient.subscribeToDefaultMonitoringSetUpdates(MonitoringSetsSubscribedReceiver)
and similar methods poll for monitoring sets.TrolieClientBuilder.objectMapper
(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Overrides configuration of the Jackson object mapper using for JSON parsing and serializationTrolieClientBuilder.periodLength
(int periodLengthMinutes) Sets the period length assumed for forecast ratings.TrolieClientBuilder.realTimeRatingsPollMs
(int realTimeRatingsPollMs) Sets the period at whichTrolieClient.subscribeToInUseLimits(RealTimeSnapshotSubscribedReceiver)
and similar methods poll for new real-time ratings.TrolieClientBuilder.requestConfig
(org.apache.hc.client5.http.config.RequestConfig config) Override the HTTP client request config