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

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

There is a newer version: 2.0.11
Show newest version
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 final BlockingQueue stream;
    private Status status;

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

    public BlockingQueue getStream() {
        return stream;
    }

    public Status getStatus() {
        return status;
    }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy