
org.wildfly.clustering.session.user.User Maven / Gradle / Ivy
/*
* Copyright The WildFly Authors
* SPDX-License-Identifier: Apache-2.0
*/
package org.wildfly.clustering.session.user;
/**
* Represents a user, associated with one or more sessions.
* @author Paul Ferraro
* @param the user context type
* @param the transient context type
* @param the deployment identifier type
* @param the session identifier type
*/
public interface User {
/**
* Returns the unique identifier for this user.
* @return a unique identifier
*/
String getId();
/**
* Returns the persistent context of this user.
* @return the persistent user context.
*/
C getPersistentContext();
/**
* Returns the transient context of this user.
* @return the transient user context
*/
T getTransientContext();
/**
* Returns the sessions for this user.
* @return the sessions for this user.
*/
UserSessions getSessions();
/**
* Invalidates this user and any associated sessions.
*/
void invalidate();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy