class SessionBuilder extends AnyRef
Provides methods to set configuration properties and create a Session .
- Since
-
0.1.0
- Alphabetic
- By Inheritance
- SessionBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SessionBuilder ()
Value Members
-
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
- Since
-
0.1.0
-
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
- Since
-
0.1.0
-
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
-
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
- Since
-
0.1.0
-
def
create
:
Session
Creates a new Session.
-
def
getOrCreate
:
Session
Returns the existing session if already exists or create it if not.