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

org.opensearch.index.shard.PrimaryShardClosedException Maven / Gradle / Ivy

There is a newer version: 2.18.0
Show newest version
/*
 * Copyright OpenSearch Contributors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.opensearch.index.shard;

import org.opensearch.core.common.io.stream.StreamInput;
import org.opensearch.core.index.shard.ShardId;

import java.io.IOException;

/**
 * Exception to indicate failures are caused due to the closure of the primary
 * shard.
 *
 * @opensearch.internal
 */
public class PrimaryShardClosedException extends IndexShardClosedException {
    public PrimaryShardClosedException(ShardId shardId) {
        super(shardId, "Primary closed");
    }

    public PrimaryShardClosedException(StreamInput in) throws IOException {
        super(in);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy