com.netflix.astyanax.impl
Class RingDescribeHostSupplier
java.lang.Object
com.netflix.astyanax.impl.RingDescribeHostSupplier
- All Implemented Interfaces:
- com.google.common.base.Supplier<java.util.List<com.netflix.astyanax.connectionpool.Host>>
public class RingDescribeHostSupplier
- extends java.lang.Object
- implements com.google.common.base.Supplier<java.util.List<com.netflix.astyanax.connectionpool.Host>>
HostSupplier that uses existing hosts in the connection pool to execute a ring
describe and get the entire list of hosts and their tokens from Cassandra.
Method Summary |
java.util.List<com.netflix.astyanax.connectionpool.Host> |
get()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RingDescribeHostSupplier
public RingDescribeHostSupplier(Keyspace keyspace,
int defaultPort,
java.lang.String dc,
java.lang.String rack)
RingDescribeHostSupplier
public RingDescribeHostSupplier(Keyspace keyspace,
int defaultPort,
java.lang.String dc)
RingDescribeHostSupplier
public RingDescribeHostSupplier(Keyspace keyspace,
int defaultPort)
get
public java.util.List<com.netflix.astyanax.connectionpool.Host> get()
- Specified by:
get
in interface com.google.common.base.Supplier<java.util.List<com.netflix.astyanax.connectionpool.Host>>