Skip to content

Commit 3260b1b

Browse files
committed
Added constants for the available strategies.
1 parent de72791 commit 3260b1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/IndexRotator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ class IndexRotator
1313
const SECONDARY_INCLUDE_ID = 1;
1414
const RETRY_TIME_COPY = 500000;
1515
const MAX_RETRY_COUNT = 5;
16-
const DEFAULT_PRIMARY_INDEX_STRATEGY = 'Zumba\ElasticsearchRotator\Strategy\ConfigurationStrategy';
16+
const STRATEGY_CONFIGURATION = 'Zumba\ElasticsearchRotator\Strategy\ConfigurationStrategy';
17+
const STRATEGY_ALIAS = 'Zumba\ElasticsearchRotator\Strategy\AliasStrategy';
18+
const DEFAULT_PRIMARY_INDEX_STRATEGY = self::STRATEGY_CONFIGURATION;
1719

1820
/**
1921
* Elasticsearch client instance.

0 commit comments

Comments
 (0)