All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.polyglotted.elastic.index.IgnoreErrors Maven / Gradle / Ivy

There is a newer version: 6.8.5
Show newest version
package io.polyglotted.elastic.index;

@SuppressWarnings("unused")
public enum IgnoreErrors {
    LENIENT {
        @Override public boolean ignoreFailure(String message) { return true; }
    },
    STRICT {
        @Override public boolean ignoreFailure(String message) { return message == null; }
    },
    VERSION_CONFLICT {
        @Override public boolean ignoreFailure(String message) { return message == null || message.indexOf("VersionConflictEngineException") > 0; }
    };

    public abstract boolean ignoreFailure(String message);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy