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

org.elasticsearch.river.mongodb.SharedContext Maven / Gradle / Ivy

package org.elasticsearch.river.mongodb;

import java.util.concurrent.BlockingQueue;

import org.elasticsearch.river.mongodb.MongoDBRiver.QueueEntry;

/**
 * Holds mutable state to be shared between river, slurper, and indexer.
 */
public class SharedContext {

    private BlockingQueue stream;
    private Status status;

    public SharedContext(BlockingQueue stream, Status status) {
        this.stream = stream;
        this.status = status;
    }

    public BlockingQueue getStream() {
        return stream;
    }

    public void setStream(BlockingQueue stream) {
        this.stream = stream;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy