Class ElasticsearchEndpoint

Assembly: redb.Route.Elasticsearch.dll

Elasticsearch endpoint. Creates either a consumer (polling search)
or a producer (index/bulk/search/get/update/delete/count/exists).

The path part of the URI is parsed as [OPERATION:]index-name.
When an operation prefix is present (e.g. es:Search:my-index),
the producer dispatches that specific operation.

public sealed class ElasticsearchEndpoint : EndpointBase<ElasticsearchEndpointOptions>, IEndpoint, IEndpointStatistics

Inheritance

Object→ElasticsearchEndpointOptions}→ElasticsearchEndpoint

Implements

Properties

IndexName

Index name parsed from the URI path.

public string IndexName { get; }

OperationType

Parsed operation type (default: Index for producer).

public ElasticsearchOperationType OperationType { get; }

Methods

CreateConsumer(IProcessor)

Creates a consumer for receiving messages from this endpoint.

public override IConsumer CreateConsumer(IProcessor processor)

CreateProducer()

Creates a producer for sending messages to this endpoint.

public override IProducer CreateProducer()

Stop(CancellationToken)

Stops the endpoint lifecycle.

public override Task Stop(CancellationToken ct = default)

Constructors