Examples of ClosingRetentionStrategy


Examples of org.graylog2.indexer.retention.strategies.ClosingRetentionStrategy

    public static RetentionStrategy fromString(String retentionStrategy, IndexManagement indexManagement) throws NoSuchStrategyException {
        if (retentionStrategy.equals("delete")) {
            return new DeletionRetentionStrategy(indexManagement);
        } else if (retentionStrategy.equals("close")) {
            return new ClosingRetentionStrategy(indexManagement);
        }

        throw new NoSuchStrategyException("No such retention strategy [" + retentionStrategy + "]");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.