public interface VersionExtension
Allows plugging in current version elements.
-
Method Summary
Modifier and TypeMethodDescriptiongetCurrentIndexVersion
(IndexVersion fallback) Returns theIndexVersion
that Elasticsearch should use.getCurrentTransportVersion
(TransportVersion fallback) Returns theTransportVersion
that Elasticsearch should use.
-
Method Details
-
getCurrentTransportVersion
Returns theTransportVersion
that Elasticsearch should use.This must be at least as high as the given fallback.
- Parameters:
fallback
- The latest transport version from server
-
getCurrentIndexVersion
Returns theIndexVersion
that Elasticsearch should use.This must be at least as high as the given fallback.
- Parameters:
fallback
- The latest index version from server
-