Configuration class

Constructors

Configuration(String apiKey, {Set<Node>? nodes, Node? nearestNode, int? numRetries, Duration retryInterval = const Duration(milliseconds: 100), Duration connectionTimeout = const Duration(seconds: 10), Duration healthcheckInterval = const Duration(seconds: 15), Duration cachedSearchResultsTTL = Duration.zero, bool sendApiKeyAsQueryParam = false})

Properties

apiKey String
final
cachedSearchResultsTTL Duration
final
connectionTimeout Duration
final
hashCode int
The hash code for this object.
no setterinherited
healthcheckInterval Duration
final
nearestNode Node?
final
nodes Set<Node>?
final
numRetries int
latefinal
retryInterval Duration
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendApiKeyAsQueryParam bool
final

Methods

copyWith({String? apiKey, Set<Node>? nodes, Node? nearestNode, int? numRetries, Duration? retryInterval, Duration? connectionTimeout, Duration? healthcheckInterval, Duration? cachedSearchResultsTTL, bool? sendApiKeyAsQueryParam}) Configuration
Returns a new Configuration object which differs only in the specified values from this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited