@Deprecated public interface MutinyImplementor
Modifier and Type | Method and Description |
---|---|
Mutiny.Session |
newSession()
Deprecated.
Obtain a new
reactive session , the main
interaction point between the user's program and Hibernate
Reactive. |
Mutiny.Session |
newSession(String tenantId)
Deprecated.
Obtain a new
reactive session for a
specified tenant. |
Mutiny.StatelessSession |
newStatelessSession()
Deprecated.
Obtain a
reactive stateless session . |
Mutiny.StatelessSession |
newStatelessSession(String tenantId)
Deprecated.
Obtain a
reactive stateless session . |
Mutiny.Session newSession()
reactive session
, the main
interaction point between the user's program and Hibernate
Reactive.
The underlying database connection is obtained lazily when
the returned Mutiny.Session
needs to access the database.
The client must explicitly close the session by calling
Mutiny.Session#close()
.
Mutiny.SessionFactory#withSession(Function)
,
Mutiny.SessionFactory#openSession()
Mutiny.Session newSession(String tenantId)
reactive session
for a
specified tenant.
The underlying database connection is obtained lazily when
the returned Mutiny.Session
needs to access the database.
The client must explicitly close the session by calling
Mutiny.Session#close()
.
tenantId
- the id of the tenantMutiny.SessionFactory#withSession(String, Function)
,
Mutiny.SessionFactory#openSession(String)
Mutiny.StatelessSession newStatelessSession()
reactive stateless session
.
The underlying database connection is obtained lazily when
the returned Mutiny.StatelessSession
needs to access the
database.
The client must explicitly close the session by calling
Mutiny.StatelessSession#close()
.
Mutiny.SessionFactory#openStatelessSession()
,
Mutiny.SessionFactory#withStatelessSession(Function)
Mutiny.StatelessSession newStatelessSession(String tenantId)
reactive stateless session
.
The underlying database connection is obtained lazily when
the returned Mutiny.StatelessSession
needs to access the
database.
The client must explicitly close the session by calling
Mutiny.StatelessSession#close()
.
tenantId
- the id of the tenantMutiny.SessionFactory#openStatelessSession(String)
,
Mutiny.SessionFactory#withSession(String, Function)
Copyright © 2020-2022 Red Hat, Inc. All Rights Reserved.