@Singleton
public class UserSessionTerminationService
extends com.google.common.util.concurrent.AbstractIdleService
TERMINATION_REVISION number.
The service also listens for UserChangedEvent events and terminates all sessions for disabled users.| Modifier and Type | Class and Description |
|---|---|
static class |
UserSessionTerminationService.GlobalTerminationRevisionConfig |
| Constructor and Description |
|---|
UserSessionTerminationService(MongoDbSessionDAO sessionDao,
MongoDBSessionService sessionService,
org.apache.shiro.mgt.DefaultSecurityManager securityManager,
ClusterConfigService clusterConfigService,
UserService userService,
ServerStatus serverStatus,
com.google.common.eventbus.EventBus eventBus) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleUserChanged(UserChangedEvent event) |
protected void |
shutDown() |
protected void |
startUp() |
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString@Inject public UserSessionTerminationService(MongoDbSessionDAO sessionDao, MongoDBSessionService sessionService, org.apache.shiro.mgt.DefaultSecurityManager securityManager, ClusterConfigService clusterConfigService, UserService userService, ServerStatus serverStatus, com.google.common.eventbus.EventBus eventBus)
public void handleUserChanged(UserChangedEvent event)
protected void startUp()
throws Exception
startUp in class com.google.common.util.concurrent.AbstractIdleServiceExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.