Package org.keycloak.events
Class EventListenerTransaction
- java.lang.Object
-
- org.keycloak.models.AbstractKeycloakTransaction
-
- org.keycloak.events.EventListenerTransaction
-
- All Implemented Interfaces:
KeycloakTransaction
public class EventListenerTransaction extends AbstractKeycloakTransaction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.keycloak.models.AbstractKeycloakTransaction
AbstractKeycloakTransaction.TransactionState
-
-
Field Summary
-
Fields inherited from class org.keycloak.models.AbstractKeycloakTransaction
logger, state
-
-
Constructor Summary
Constructors Constructor Description EventListenerTransaction(BiConsumer<AdminEvent,Boolean> adminEventConsumer, Consumer<Event> eventConsumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAdminEvent(AdminEvent adminEvent, boolean includeRepresentation)
void
addEvent(Event event)
protected void
commitImpl()
protected void
rollbackImpl()
-
Methods inherited from class org.keycloak.models.AbstractKeycloakTransaction
begin, commit, getRollbackOnly, getState, isActive, rollback, setRollbackOnly
-
-
-
-
Constructor Detail
-
EventListenerTransaction
public EventListenerTransaction(BiConsumer<AdminEvent,Boolean> adminEventConsumer, Consumer<Event> eventConsumer)
-
-
Method Detail
-
addAdminEvent
public void addAdminEvent(AdminEvent adminEvent, boolean includeRepresentation)
-
addEvent
public void addEvent(Event event)
-
commitImpl
protected void commitImpl()
- Specified by:
commitImpl
in classAbstractKeycloakTransaction
-
rollbackImpl
protected void rollbackImpl()
- Specified by:
rollbackImpl
in classAbstractKeycloakTransaction
-
-