io.dropwizard.cassandra.ContactPoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-cassandra Show documentation
Show all versions of dropwizard-cassandra Show documentation
Provides easy integration for Dropwizard applications with Apache Cassandra using the DataStax 4.x client
package io.dropwizard.cassandra;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.validation.PortRange;
import javax.validation.constraints.NotNull;
public class ContactPoint {
@NotNull
@JsonProperty
private String host;
@NotNull
@JsonProperty
@PortRange
private Integer port;
public String getHost() {
return host;
}
public void setHost(String host) {
this.host = host;
}
public Integer getPort() {
return port;
}
public void setPort(Integer port) {
this.port = port;
}
}