Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
Modifier and Type | Interface and Description |
---|---|
static interface |
Host.LifecycleAwareStateListener
A
StateListener that tracks when it gets registered or unregistered with a cluster. |
Modifier and Type | Method and Description |
---|---|
Collection<Host.StateListener> |
Cluster.Initializer.getInitialListeners()
Optional listeners to register against the newly created cluster.
|
Collection<Host.StateListener> |
Cluster.Builder.getInitialListeners() |
Modifier and Type | Method and Description |
---|---|
Cluster |
DelegatingCluster.register(Host.StateListener listener) |
Cluster |
Cluster.register(Host.StateListener listener)
Registers the provided listener to be notified on hosts up/down/added/removed events.
|
Cluster |
DelegatingCluster.unregister(Host.StateListener listener) |
Cluster |
Cluster.unregister(Host.StateListener listener)
Unregisters the provided listener from being notified on hosts events.
|
Modifier and Type | Method and Description |
---|---|
Cluster.Builder |
Cluster.Builder.withInitialListeners(Collection<Host.StateListener> listeners)
Register the provided listeners in the newly created cluster.
|
Copyright © 2012–2024. All rights reserved.