Class StickySniffingConnectionPool
Inheritance
StickySniffingConnectionPool
Assembly: OpenSearch.Net.dll
Syntax
public class StickySniffingConnectionPool : SniffingConnectionPool, IConnectionPool, IDisposable
Constructors
|
Edit this page
View Source
StickySniffingConnectionPool(IEnumerable<Node>, Func<Node, float>, IDateTimeProvider)
Declaration
public StickySniffingConnectionPool(IEnumerable<Node> nodes, Func<Node, float> nodeScorer, IDateTimeProvider dateTimeProvider = null)
Parameters
|
Edit this page
View Source
StickySniffingConnectionPool(IEnumerable<Uri>, Func<Node, float>, IDateTimeProvider)
Declaration
public StickySniffingConnectionPool(IEnumerable<Uri> uris, Func<Node, float> nodeScorer, IDateTimeProvider dateTimeProvider = null)
Parameters
Properties
|
Edit this page
View Source
SupportsPinging
Whether pinging is supported
Declaration
public override bool SupportsPinging { get; }
Property Value
Overrides
|
Edit this page
View Source
SupportsReseeding
Whether reseeding with new nodes is supported
Declaration
public override bool SupportsReseeding { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
CreateView(Action<AuditEvent, Node>)
Creates a view of all the live 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 override IEnumerable<Node> CreateView(Action<AuditEvent, Node> audit = null)
Parameters
Returns
Overrides
Implements
Extension Methods