Packages

class SessionBuilder extends AnyRef

Provides methods to set configuration properties and create a Session .

Since

0.1.0

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

Instance Constructors

  1. new SessionBuilder ()

Value Members

  1. def config ( key: String , value: String ) : SessionBuilder

    Adds the specified configuration property and value to the SessionBuilder configuration.

    Adds the specified configuration property and value to the SessionBuilder configuration.

    key

    Name of the configuration property.

    value

    Value of the configuration property.

    returns

    A SessionBuilder

    Since

    0.1.0

  2. def configFile ( file: String ) : SessionBuilder

    Adds the configuration properties in the specified file to the SessionBuilder configuration.

    Adds the configuration properties in the specified file to the SessionBuilder configuration.

    file

    Path to the file containing the configuration properties.

    returns

    A SessionBuilder

    Since

    0.1.0

  3. def configs ( javaMap: Map [ String , String ] ) : SessionBuilder

    Adds the specified Java Map of configuration properties to the SessionBuilder configuration.

    Adds the specified Java Map of configuration properties to the SessionBuilder configuration.

    Note that calling this method overwrites any existing configuration properties that you have already set in the SessionBuilder.

    Since

    0.2.0

  4. def configs ( configs: Map [ String , String ] ) : SessionBuilder

    Adds the specified Map of configuration properties to the SessionBuilder configuration.

    Adds the specified Map of configuration properties to the SessionBuilder configuration.

    Note that calling this method overwrites any existing configuration properties that you have already set in the SessionBuilder.

    configs

    Map of the names and values of configuration properties.

    returns

    A SessionBuilder

    Since

    0.1.0

  5. def create : Session

    Creates a new Session.

    Creates a new Session.

    returns

    A Session

    Since

    0.1.0

  6. def getOrCreate : Session

    Returns the existing session if already exists or create it if not.

    Returns the existing session if already exists or create it if not.

    returns

    A Session

    Since

    1.10.0