Skip to content

Commit 3236333

Browse files
committed
xmldocs on IConnectionConfigurationValues
1 parent 5b23f1e commit 3236333

File tree

2 files changed

+71
-2
lines changed

2 files changed

+71
-2
lines changed

src/Elasticsearch.Net/Connection/Configuration/IConnectionConfigurationValues.cs

+69-1
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,94 @@ namespace Elasticsearch.Net.Connection
88
{
99
public interface IConnectionConfigurationValues
1010
{
11+
/// <summary>
12+
/// The connection pool to use when talking with elasticsearch
13+
/// </summary>
1114
IConnectionPool ConnectionPool { get; }
1215

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>
1321
int MaximumAsyncConnections { get; }
22+
23+
/// <summary>
24+
/// The time out for calls to elasticsearch
25+
/// </summary>
1426
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>
1531
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>
1636
int? DeadTimeout { get; }
37+
38+
/// <summary>
39+
/// The maximum ammount of time a node is allowed to marked dead
40+
/// </summary>
1741
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>
1847
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>
1953
bool DisablePings { get; }
54+
55+
/// <summary>
56+
/// When set signals elasticsearch to respond with compressed responses
57+
/// </summary>
2058
bool EnableCompressedResponses { get; }
2159

60+
/// <summary>
61+
/// When set will force all connections through this proxy
62+
/// </summary>
2263
string ProxyAddress { get; }
2364
string ProxyUsername { get; }
2465
string ProxyPassword { get; }
25-
66+
67+
/// <summary>
68+
/// When set connection information is written on the trace output
69+
/// </summary>
2670
bool TraceEnabled { get; }
71+
72+
/// <summary>
73+
/// When enabled, the client will gather as many interesting metrics as it can.
74+
/// </summary>
2775
bool MetricsEnabled { get; }
76+
77+
/// <summary>
78+
/// Forces elasticsearch to send pretty json responses over the wire
79+
/// </summary>
2880
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>
2986
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>
3093
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>
3199
bool HttpPipeliningEnabled { get; }
32100

33101
/// <summary>

src/Elasticsearch.Net/Connection/IConnection.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public interface IConnection
2828

2929
Task<ElasticsearchResponse<Stream>> Delete(Uri uri, byte[] data, IRequestConfiguration requestConfiguration = null);
3030
ElasticsearchResponse<Stream> DeleteSync(Uri uri, byte[] data, IRequestConfiguration requestConfiguration = null);
31-
31+
32+
3233
}
3334
}

0 commit comments

Comments
 (0)