Class DetachedBackendSessionContext
java.lang.Object
org.hibernate.search.engine.backend.session.spi.DetachedBackendSessionContext
Provides visibility from the lower layers of Hibernate Search (engine, backend)
to the session defined in the upper layers (mapping).
On contrary to BackendSessionContext,
this context is expected to be detached from the actual session,
allowing it to be used after the session was closed.
The main downside is that this context cannot be used
everywhere BackendSessionContext can.
In particular, it cannot be used when creating document-related
indexing plans
or indexers
because these may need access to the session.
-
Method Summary
Modifier and TypeMethodDescriptionof(BackendMappingContext mappingContext, String tenantIdentifier) of(BackendSessionContext sessionContext)
-
Method Details
-
of
-
of
public static DetachedBackendSessionContext of(BackendMappingContext mappingContext, String tenantIdentifier) -
mappingContext
-
tenantIdentifier
-