Interface CassandraServer
-
@Immutable(prehash=true, intern=true, builder=false) public interface CassandraServer
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
cassandraHostName()
default void
check()
static CassandraServer
of(String hostName, InetSocketAddress addr)
static CassandraServer
of(String hostName, Set<InetSocketAddress> reachableProxies)
static CassandraServer
of(InetSocketAddress addr)
default @Unsafe InetSocketAddress
proxy()
The only proxy that will be used to reach the Cassandra host.Set<InetSocketAddress>
reachableProxyIps()
cassandraHostName()
withreachableProxyIps()
form one reachable Cassandra server.
-
-
-
Method Detail
-
cassandraHostName
@Parameter String cassandraHostName()
-
reachableProxyIps
@Parameter Set<InetSocketAddress> reachableProxyIps()
cassandraHostName()
withreachableProxyIps()
form one reachable Cassandra server. We maintain set of all IPs but do not create a client pool for each one of these.
-
proxy
@Unsafe @Lazy @Redacted default @Unsafe InetSocketAddress proxy()
The only proxy that will be used to reach the Cassandra host.
-
check
@Check default void check()
-
of
static CassandraServer of(InetSocketAddress addr)
-
of
static CassandraServer of(String hostName, InetSocketAddress addr)
-
of
static CassandraServer of(String hostName, Set<InetSocketAddress> reachableProxies)
-
-