Class SingleNodeConnectionPool
A connection pool to a single node or endpoint
Inheritance
SingleNodeConnectionPool
Assembly: OpenSearch.Net.dll
Syntax
public class SingleNodeConnectionPool : IConnectionPool, IDisposable
Constructors
|
Edit this page
View Source
SingleNodeConnectionPool(Uri, IDateTimeProvider)
Declaration
public SingleNodeConnectionPool(Uri uri, IDateTimeProvider dateTimeProvider = null)
Parameters
Properties
|
Edit this page
View Source
LastUpdate
The last time that this instance was updated
Declaration
public DateTime LastUpdate { get; }
Property Value
|
Edit this page
View Source
MaxRetries
Returns the default maximum retries for the connection pool implementation.
Most implementation default to number of nodes, note that this can be overidden
in the connection settings
Declaration
public int MaxRetries { get; }
Property Value
|
Edit this page
View Source
Nodes
Declaration
public IReadOnlyCollection<Node> Nodes { get; }
Property Value
|
Edit this page
View Source
SniffedOnStartup
Whether a sniff is seen on startup. The implementation is
responsible for setting this in a thread safe fashion.
Declaration
public bool SniffedOnStartup { get; set; }
Property Value
|
Edit this page
View Source
SupportsPinging
Whether pinging is supported
Declaration
public bool SupportsPinging { get; }
Property Value
|
Edit this page
View Source
SupportsReseeding
Whether reseeding with new nodes is supported
Declaration
public bool SupportsReseeding { get; }
Property Value
|
Edit this page
View Source
UsingSsl
Whether SSL/TLS is being used
Declaration
public bool UsingSsl { get; }
Property Value
Methods
|
Edit this page
View Source
CreateView(Action<AuditEvent, Node>)
Creates a view over the nodes, with changing starting positions, that wraps over on each call
e.g Thread A might get 1,2,3,4,5 and thread B will get 2,3,4,5,1.
if there are no live nodes yields a different dead node to try once
Declaration
public IEnumerable<Node> CreateView(Action<AuditEvent, Node> audit = null)
Parameters
Returns
|
Edit this page
View Source
DisposeManagedResources()
Declaration
protected virtual void DisposeManagedResources()
|
Edit this page
View Source
Reseed(IEnumerable<Node>)
Reseeds the nodes. The implementation is responsible for thread safety
Declaration
public void Reseed(IEnumerable<Node> nodes)
Parameters
Implements
Extension Methods