Packages

final class CassandraSessionRegistry extends AnyRef

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CassandraSessionRegistry
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def sessionFor(settings: CassandraSessionSettings): CassandraSession

    Get an existing session or start a new one with the given settings, makes it possible to share one session across plugins.

  2. def sessionFor(configPath: String, init: Function[CqlSession, CompletionStage[Done]]): CassandraSession

    Get an existing session or start a new one with the given settings, makes it possible to share one session across plugins.

    Get an existing session or start a new one with the given settings, makes it possible to share one session across plugins.

    The init function will be performed once when the session is created, i.e. if sessionFor is called from multiple places with different init it will only execute the first.

    Sessions in the session registry are closed after actor system termination.

  3. def sessionFor(configPath: String): CassandraSession

    Get an existing session or start a new one with the given settings, makes it possible to share one session across plugins.

    Get an existing session or start a new one with the given settings, makes it possible to share one session across plugins.

    Sessions in the session registry are closed after actor system termination.