Top Description Fields Constructors Methods
org.apache.catalina.session

public Class TooManyActiveSessionsException

extends IllegalStateException
Class Inheritance

An exception that indicates the maximum number of active sessions has been reached and the server is refusing to create any new sessions.

Field Summary

Modifier and TypeField and Description
private final int
maxActiveSessions

The maximum number of active sessions the server will tolerate.

private static final long

Constructor Summary

AccessConstructor and Description
public
TooManyActiveSessionsException(String
A description for the exception.
message
,
int
The maximum number of active sessions allowed by the session manager.
maxActive
)

Creates a new TooManyActiveSessionsException.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The maximum number of sessions allowed by the session manager.
getMaxActiveSessions
()

Gets the maximum number of sessions allowed by the session manager.

Field Detail

maxActiveSessionsback to summary
private final int maxActiveSessions

The maximum number of active sessions the server will tolerate.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.IllegalStateException.serialVersionUID.

Constructor Detail

TooManyActiveSessionsExceptionback to summary
public TooManyActiveSessionsException(String message, int maxActive)

Creates a new TooManyActiveSessionsException.

Parameters
message:String

A description for the exception.

maxActive:int

The maximum number of active sessions allowed by the session manager.

Method Detail

getMaxActiveSessionsback to summary
public int getMaxActiveSessions()

Gets the maximum number of sessions allowed by the session manager.

Returns:int

The maximum number of sessions allowed by the session manager.