package cassandra
- Alphabetic
- Public
- Protected
Type Members
- class CassandraMetricsRegistry extends Extension
Retrieves Cassandra metrics registry for an actor system
- final class CassandraServerMetaData extends AnyRef
- class CassandraSessionSettings extends AnyRef
- class CassandraWriteSettings extends AnyRef
- trait CqlSessionProvider extends AnyRef
The implementation of the
SessionProvider
is used for creating the Cassandra Session.The implementation of the
SessionProvider
is used for creating the Cassandra Session. By default the DefaultSessionProvider is building the Cluster from configuration properties but it is possible to replace the implementation of the SessionProvider to reuse another session or override the Cluster builder with other settings.The implementation is defined in configuration
session-provider
property. It may optionally have a constructor with an ActorSystem and Config parameter. The config parameter is the config section of the plugin. - class DefaultSessionProvider extends CqlSessionProvider
Builds a
CqlSession
from the givenconfig
via DriverConfigLoaderFromConfig.Builds a
CqlSession
from the givenconfig
via DriverConfigLoaderFromConfig.The configuration for the driver is typically the
datastax-java-driver
section of the ActorSystem's configuration, but it's possible to use other configuration. The configuration path of the driver's configuration can be defined withdatastax-java-driver-config
property in the givenconfig
. - class DriverConfigLoaderFromConfig extends DriverConfigLoader
DriverConfigLoader
that reads the settings of the Cassandra driver from a givenConfig
.DriverConfigLoader
that reads the settings of the Cassandra driver from a givenConfig
. TheDefaultDriverConfigLoader
loadsapplication.conf
or file, which is not necessarily the same as the ActorSystem's configuration.The DefaultSessionProvider is using this when building
CqlSession
.Intended to be used with
CqlSession.builder().withConfigLoader
when implementing a custom CqlSessionProvider.
Value Members
- object CassandraMetricsRegistry extends ExtensionId[CassandraMetricsRegistry] with ExtensionIdProvider
- object CassandraSessionSettings
- object CassandraWriteSettings
- object CqlSessionProvider
- object DriverConfigLoaderFromConfig