org.elasticsearch.river.mongodb.SharedContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elasticsearch-river-mongodb Show documentation
Show all versions of elasticsearch-river-mongodb Show documentation
MongoDB River for ElasticSearch
The 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;
}
}