Class

com.outworkers.phantom.connectors

DefaultSessionProvider

Related Doc: package connectors

Permalink

class DefaultSessionProvider extends SessionProvider

The default SessionProvider implementation, which should be sufficient for the most use cases.

This implementation caches Session instances per keySpace.

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

Instance Constructors

  1. new DefaultSessionProvider(space: KeySpace, builder: ClusterBuilder, autoinit: Boolean = true, keyspaceQuery: Option[KeySpaceCQLQuery] = None, errorHandler: (Throwable) ⇒ Throwable = identity)

    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 clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val cluster: Cluster

    Permalink

    The Cassandra driver's Cluster instance used by this provider to create new Session instances.

    The Cassandra driver's Cluster instance used by this provider to create new Session instances.

    Definition Classes
    DefaultSessionProviderSessionProvider
  7. def createSession(keySpace: String): Session

    Permalink

    Creates a new Session for the specified keySpace.

    Creates a new Session for the specified keySpace.

    Attributes
    protected[this]
  8. def defaultKeyspaceCreationQuery(session: Session, keySpace: String): String

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def initKeySpace(session: Session, space: String): Session

    Permalink

    Initializes the keySpace with the given name on the specified Session.

    Initializes the keySpace with the given name on the specified Session.

    Attributes
    protected[this]
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val logger: Logger

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. val session: Session

    Permalink

    Returns a Session instance for the keySpace with the specified name.

    Returns a Session instance for the keySpace with the specified name.

    It is recommended that implementations cache instances per keySpace, so that they can hand out existing instances in case a client asks for the same keySpace multiple times.

    Definition Classes
    DefaultSessionProviderSessionProvider
  21. val space: KeySpace

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

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

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

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

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

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

Inherited from SessionProvider

Inherited from AnyRef

Inherited from Any

Ungrouped