@@ -8,26 +8,94 @@ namespace Elasticsearch.Net.Connection
8
8
{
9
9
public interface IConnectionConfigurationValues
10
10
{
11
+ /// <summary>
12
+ /// The connection pool to use when talking with elasticsearch
13
+ /// </summary>
11
14
IConnectionPool ConnectionPool { get ; }
12
15
16
+ /// <summary>
17
+ /// When set to a value > 0, this will signal the IConnection what the maximum
18
+ /// concurrent connections is, NEST favors IOCP ports over threads but in multi tenant
19
+ /// situations this may still proof a valuable throttle
20
+ /// </summary>
13
21
int MaximumAsyncConnections { get ; }
22
+
23
+ /// <summary>
24
+ /// The time out for calls to elasticsearch
25
+ /// </summary>
14
26
int Timeout { get ; }
27
+
28
+ /// <summary>
29
+ /// The timeout to use for ping calls that are issues to check whether a node is up or not.
30
+ /// </summary>
15
31
int ? PingTimeout { get ; }
32
+
33
+ /// <summary>
34
+ /// The time to put dead nodes out of rotation (this will be multiplied by the number of times they've been dead)
35
+ /// </summary>
16
36
int ? DeadTimeout { get ; }
37
+
38
+ /// <summary>
39
+ /// The maximum ammount of time a node is allowed to marked dead
40
+ /// </summary>
17
41
int ? MaxDeadTimeout { get ; }
42
+
43
+ /// <summary>
44
+ /// When a retryable exception occurs or status code is returned this controls the maximum
45
+ /// amount of times we should retry the call to elasticsearch
46
+ /// </summary>
18
47
int ? MaxRetries { get ; }
48
+
49
+ /// <summary>
50
+ /// This signals that we do not want to send initial pings to unknown/previously dead nodes
51
+ /// and just send the call straightaway
52
+ /// </summary>
19
53
bool DisablePings { get ; }
54
+
55
+ /// <summary>
56
+ /// When set signals elasticsearch to respond with compressed responses
57
+ /// </summary>
20
58
bool EnableCompressedResponses { get ; }
21
59
60
+ /// <summary>
61
+ /// When set will force all connections through this proxy
62
+ /// </summary>
22
63
string ProxyAddress { get ; }
23
64
string ProxyUsername { get ; }
24
65
string ProxyPassword { get ; }
25
-
66
+
67
+ /// <summary>
68
+ /// When set connection information is written on the trace output
69
+ /// </summary>
26
70
bool TraceEnabled { get ; }
71
+
72
+ /// <summary>
73
+ /// When enabled, the client will gather as many interesting metrics as it can.
74
+ /// </summary>
27
75
bool MetricsEnabled { get ; }
76
+
77
+ /// <summary>
78
+ /// Forces elasticsearch to send pretty json responses over the wire
79
+ /// </summary>
28
80
bool UsesPrettyResponses { get ; }
81
+
82
+ /// <summary>
83
+ /// Instructs the client to always keep a raw copy of the returned bytes on the response
84
+ /// , useful for debugging purposses.
85
+ /// </summary>
29
86
bool KeepRawResponse { get ; }
87
+
88
+ /// <summary>
89
+ /// Disabled proxy detection on the webrequest, in some cases this may speed up the first connection
90
+ /// your appdomain makes, in other cases it will actually increase the time for the first connection.
91
+ /// No silver bullet! use with care!
92
+ /// </summary>
30
93
bool DisableAutomaticProxyDetection { get ; }
94
+
95
+ /// <summary>
96
+ /// By default the client disabled http pipelining as elasticsearch did not support it until 1.4
97
+ /// If you are using a version of elasticsearch >= 1.4 you can enable this and expect some performance gains
98
+ /// </summary>
31
99
bool HttpPipeliningEnabled { get ; }
32
100
33
101
/// <summary>
0 commit comments