forked from elastic/elasticsearch-net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIConnectionConfigurationValues.cs
67 lines (56 loc) · 1.99 KB
/
IConnectionConfigurationValues.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
using System;
using System.Collections.Specialized;
using Elasticsearch.Net.ConnectionPool;
using Elasticsearch.Net.Serialization;
namespace Elasticsearch.Net.Connection
{
public interface IConnectionConfigurationValues
{
IConnectionPool ConnectionPool { get; }
int MaximumAsyncConnections { get; }
int Timeout { get; }
int? PingTimeout { get; }
int? DeadTimeout { get; }
int? MaxDeadTimeout { get; }
int? MaxRetries { get; }
bool DisablePings { get; }
string ProxyAddress { get; }
string ProxyUsername { get; }
string ProxyPassword { get; }
bool TraceEnabled { get; }
bool UsesPrettyResponses { get; }
bool KeepRawResponse { get; }
bool AutomaticProxyDetection { get; }
/// <summary>
/// Instead of following a c/go like error checking on response.IsValid always throw an ElasticsearchServerException
/// on the client when a call resulted in an exception on the elasticsearch server.
/// <para>Reasons for such exceptions could be search parser errors, index missing exceptions</para>
/// </summary>
bool ThrowOnElasticsearchServerExceptions { get; }
/// <summary>
/// Sniff the cluster state immediatly on startup
/// </summary>
bool SniffsOnStartup { get; }
/// <summary>
/// Force a new sniff for the cluster state everytime a connection dies
/// </summary>
bool SniffsOnConnectionFault { get; }
/// <summary>
/// Force a new sniff for the cluster when the cluster state information is older than
/// the specified timespan
/// </summary>
TimeSpan? SniffInformationLifeSpan { get; }
/// <summary>
/// Append these query string parameters automatically to every request
/// </summary>
NameValueCollection QueryStringParameters { get; }
/// <summary>
/// Connection status handler that will be called everytime the connection receives anything.
/// </summary>
Action<IElasticsearchResponse> ConnectionStatusHandler { get; }
/// <summary>
///
/// </summary>
IElasticsearchSerializer Serializer { get; set; }
}
}