Interface TransactionalSessionHandler
- All Known Implementing Classes:
CloseSessionFilter,KeycloakBeanProducer,TransactionalSessionHandler
public interface TransactionalSessionHandler
A TransactionalSessionHandler is responsible for managing transaction sessions and its lifecycle. Its subtypes
are usually related to components available from the underlying stack that runs on top of the request processing chain
as well as at the end in order to create transaction sessions and close them accordingly, respectively.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidbeginTransaction(KeycloakSession session) begin a transaction if possibledefault voidclose(KeycloakSession session) Closes aKeycloakSession.default KeycloakSessioncreate()Creates aKeycloakSession.
-
Method Details
-
create
Creates aKeycloakSession.- Returns:
- a keycloak session
-
beginTransaction
begin a transaction if possible- Parameters:
session- a session
-
close
Closes aKeycloakSession.- Parameters:
session- a session
-