46 KeycloakModelUtils.runJobInTransaction(
sessionFactory, (KeycloakSession session) -> {
47 InfinispanAuthenticationSessionProvider provider = (InfinispanAuthenticationSessionProvider) session.getProvider(AuthenticationSessionProvider.class,
48 InfinispanAuthenticationSessionProviderFactory.PROVIDER_ID);
49 SE sessionEvent = (SE) event;
51 if (!provider.getCache().getStatus().allowInvocations()) {
52 log.debugf(
"Cache in state '%s' doesn't allow invocations", provider.getCache().getStatus());
56 log.debugf(
"Received authentication session event '%s'", sessionEvent.toString());
static final Logger log
Definition: AbstractAuthSessionClusterListener.java:35
void eventReceived(ClusterEvent event)
Definition: AbstractAuthSessionClusterListener.java:45
final KeycloakSessionFactory sessionFactory
Definition: AbstractAuthSessionClusterListener.java:37