All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.clustering.session.cache.user.UserContextEntry Maven / Gradle / Ivy

There is a newer version: 4.0.0.Final
Show newest version
/*
- * Copyright The WildFly Authors
 * SPDX-License-Identifier: Apache-2.0
 */
package org.wildfly.clustering.session.cache.user;

import org.wildfly.clustering.server.util.Supplied;

/**
 * Cache entry that stores persistent and transient user context.
 * @author Paul Ferraro
 * @param  the persistent user context type
 * @param  the transient user context type
 */
public class UserContextEntry implements UserContext {

	private final C persistentContext;
	private final Supplied transientContext = Supplied.cached();

	public UserContextEntry(C persistentContext) {
		this.persistentContext = persistentContext;
	}

	@Override
	public C getPersistentContext() {
		return this.persistentContext;
	}

	@Override
	public Supplied getTransientContext() {
		return this.transientContext;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy