Class/Object

akka.persistence.cassandra

ConfigSessionProvider

Related Docs: object ConfigSessionProvider | package cassandra

Permalink

class ConfigSessionProvider extends SessionProvider

Default implementation of the SessionProvider that is used for creating the Cassandra Session. This class is building the Cluster from configuration properties.

You may create a subclass of this that performs lookup the contact points of the Cassandra cluster asynchronously instead of reading them in the configuration. Such a subclass should override the lookupContactPoints method.

The implementation is defined in configuration session-provider property. The config parameter is the config section of the plugin.

Source
ConfigSessionProvider.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConfigSessionProvider
  2. SessionProvider
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConfigSessionProvider(system: ActorSystem, config: Config)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def buildContactPoints(contactPoints: Seq[String], port: Int): Seq[InetSocketAddress]

    Permalink

    Builds list of InetSocketAddress out of host:port pairs or host entries + given port parameter.

    Builds list of InetSocketAddress out of host:port pairs or host entries + given port parameter.

    Attributes
    protected
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def clusterBuilder(clusterId: String)(implicit ec: ExecutionContext): Future[Builder]

    Permalink
    Annotations
    @silent()
  8. def connect()(implicit ec: ExecutionContext): Future[Session]

    Permalink
    Definition Classes
    ConfigSessionProviderSessionProvider
  9. def createQueryLogger(): Option[QueryLogger]

    Permalink
    Attributes
    protected
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. val fetchSize: Int

    Permalink
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val jmxReportingEnabled: Boolean

    Permalink
  18. def lookupContactPoints(clusterId: String)(implicit ec: ExecutionContext): Future[Seq[InetSocketAddress]]

    Permalink

    Subclass may override this method to perform lookup the contact points of the Cassandra cluster asynchronously instead of reading them from the configuration.

    Subclass may override this method to perform lookup the contact points of the Cassandra cluster asynchronously instead of reading them from the configuration.

    clusterId

    the configured cluster-id to lookup

    Annotations
    @silent()
  19. val metricsEnabled: Boolean

    Permalink
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. val poolingOptions: PoolingOptions

    Permalink
  24. val port: Int

    Permalink
  25. val protocolVersion: Option[ProtocolVersion]

    Permalink
  26. val reconnectMaxDelay: FiniteDuration

    Permalink
  27. val speculativeExecution: Option[SpeculativeExecutionPolicy]

    Permalink
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SessionProvider

Inherited from AnyRef

Inherited from Any

Ungrouped