public class CassandraHostRetryService extends BackgroundCassandraHostService
| Modifier and Type | Field and Description |
|---|---|
static int |
DEF_QUEUE_SIZE |
static int |
DEF_RETRY_DELAY |
cassandraHostConfigurator, connectionManager, executor, retryDelayInSeconds, sf| Constructor and Description |
|---|
CassandraHostRetryService(HConnectionManager connectionManager,
HClientFactory clientFactory,
CassandraHostConfigurator cassandraHostConfigurator,
ConnectionManagerListenersHandler listenerHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(CassandraHost cassandraHost) |
void |
applyRetryDelay() |
boolean |
contains(CassandraHost cassandraHost) |
void |
flushQueue() |
Set<CassandraHost> |
getDownedHosts() |
boolean |
remove(CassandraHost cassandraHost) |
getRetryDelayInSeconds, setRetryDelayInSecondspublic static final int DEF_QUEUE_SIZE
public static final int DEF_RETRY_DELAY
public CassandraHostRetryService(HConnectionManager connectionManager, HClientFactory clientFactory, CassandraHostConfigurator cassandraHostConfigurator, ConnectionManagerListenersHandler listenerHandler)
public void add(CassandraHost cassandraHost)
public boolean remove(CassandraHost cassandraHost)
public boolean contains(CassandraHost cassandraHost)
public Set<CassandraHost> getDownedHosts()
public void applyRetryDelay()
public void flushQueue()
Copyright © 2014. All Rights Reserved.