io.kestra.plugin.elasticsearch.model.RefreshPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plugin-elasticsearch Show documentation
Show all versions of plugin-elasticsearch Show documentation
Connect Elasticsearch search and analytics engine to Kestra workflows.
The newest version!
package io.kestra.plugin.elasticsearch.model;
import org.opensearch.client.opensearch._types.Refresh;
public enum RefreshPolicy {
IMMEDIATE,
WAIT_UNTIL,
NONE;
public Refresh to() {
return switch (this) {
case NONE -> Refresh.False;
case IMMEDIATE -> Refresh.True;
case WAIT_UNTIL -> Refresh.WaitFor;
};
}
}