public interface StatelessSessionBuilder
Modifier and Type | Method and Description |
---|---|
StatelessSessionBuilder |
connection(Connection connection)
Adds a specific connection to the session options.
|
StatelessSession |
openStatelessSession()
Opens a session with the specified options.
|
StatelessSessionBuilder |
tenantIdentifier(String tenantIdentifier)
Define the tenant identifier to be associated with the opened session.
|
StatelessSession openStatelessSession()
StatelessSessionBuilder connection(Connection connection)
connection
- The connection to use.this
, for method chainingStatelessSessionBuilder tenantIdentifier(String tenantIdentifier)
tenantIdentifier
- The tenant identifier.this
, for method chainingCopyright © 2001-2017 Red Hat, Inc. All Rights Reserved.