public final class DetachedBackendSessionContext extends Object
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.
| Modifier and Type | Method and Description |
|---|---|
BackendMappingContext |
mappingContext() |
static DetachedBackendSessionContext |
of(BackendMappingContext mappingContext,
String tenantIdentifier) |
static DetachedBackendSessionContext |
of(BackendSessionContext sessionContext) |
String |
tenantIdentifier() |
public static DetachedBackendSessionContext of(BackendSessionContext sessionContext)
public static DetachedBackendSessionContext of(BackendMappingContext mappingContext, String tenantIdentifier)
public BackendMappingContext mappingContext()
public String tenantIdentifier()
Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.