Class StickyConnectionPool
Inheritance
StickyConnectionPool
Assembly: OpenSearch.Net.dll
Syntax
public class StickyConnectionPool : StaticConnectionPool, IConnectionPool, IDisposable
Constructors
|
Edit this page
View Source
StickyConnectionPool(IEnumerable<Node>, IDateTimeProvider)
Declaration
public StickyConnectionPool(IEnumerable<Node> nodes, IDateTimeProvider dateTimeProvider = null)
Parameters
|
Edit this page
View Source
StickyConnectionPool(IEnumerable<Uri>, IDateTimeProvider)
Declaration
public StickyConnectionPool(IEnumerable<Uri> uris, IDateTimeProvider dateTimeProvider = null)
Parameters
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
|
Edit this page
View Source
Reseed(IEnumerable<Node>)
Reseeds the nodes. The implementation is responsible for thread safety
Declaration
public override void Reseed(IEnumerable<Node> nodes)
Parameters
Overrides
Implements
Extension Methods