
com.bazaarvoice.emodb.databus.DatabusConfiguration Maven / Gradle / Ivy
package com.bazaarvoice.emodb.databus;
import com.bazaarvoice.emodb.common.cassandra.CassandraConfiguration;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Optional;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
public class DatabusConfiguration {
/**
* Which Cassandra keyspace should the Databus use to store events?
*/
@Valid
@NotNull
@JsonProperty("cassandra")
private CassandraConfiguration _cassandraConfiguration;
@Valid
@NotNull
@JsonProperty("longPollKeepAliveThreadCount")
private Optional _longPollKeepAliveThreadCount = Optional.absent();
@Valid
@NotNull
@JsonProperty("longPollPollingThreadCount")
private Optional _longPollPollingThreadCount = Optional.absent();
public CassandraConfiguration getCassandraConfiguration() {
return _cassandraConfiguration;
}
public DatabusConfiguration setCassandraConfiguration(CassandraConfiguration cassandraConfiguration) {
_cassandraConfiguration = cassandraConfiguration;
return this;
}
public Optional getLongPollKeepAliveThreadCount() {
return _longPollKeepAliveThreadCount;
}
public DatabusConfiguration setLongPollKeepAliveThreadCount(Integer longPollKeepAliveThreadCount) {
_longPollKeepAliveThreadCount = Optional.of(longPollKeepAliveThreadCount);
return this;
}
public Optional getLongPollPollingThreadCount() {
return _longPollPollingThreadCount;
}
public DatabusConfiguration setLongPollPollingThreadCount(Integer longPollPollingThreadCount) {
_longPollPollingThreadCount = Optional.of(longPollPollingThreadCount);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy