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

org.wildfly.clustering.session.cache.metadata.InvalidatableSessionMetaData 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.metadata;

import org.wildfly.clustering.session.SessionMetaData;

/**
 * @author Paul Ferraro
 */
public interface InvalidatableSessionMetaData extends SessionMetaData, AutoCloseable {
	/**
	 * Indicates whether or not this session is still valid.
	 * @return true, if this session is valid, false otherwise
	 */
	boolean isValid();

	/**
	 * Invalidates the session.
	 * @return true, if session was invalidated, false if it was already invalid.
	 */
	boolean invalidate();

	/**
	 * Signals the end of the transient lifecycle of this session, typically triggered at the end of a given request.
	 */
	@Override
	void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy