|
static void | close (nSession session) throws nIllegalArgumentException |
| Closes a Nirvana session. More...
|
|
static nSession | create (nSessionAttributes attr) throws nIllegalArgumentException |
| Creates an nSession object (Nirvana session) based on the nSessionAttributes object supplied. More...
|
|
static nSession | create (nSessionAttributes attr, nReconnectHandler handler) throws nIllegalArgumentException |
| Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler. More...
|
|
static nSession | create (nSessionAttributes attr, nReconnectHandler handler, String username) throws nIllegalArgumentException |
| Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler. More...
|
|
static nSession | create (nSessionAttributes attr, nReconnectHandler handler, String username, String password) throws nIllegalArgumentException |
| Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler. More...
|
|
static nSession | create (nSessionAttributes attr, String username) throws nIllegalArgumentException |
| Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler. More...
|
|
static nSession | create (nSessionAttributes attr, String username, String password) throws nIllegalArgumentException |
| Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler. More...
|
|
static nSession | createMultiplexed (nSession session) throws nIllegalArgumentException |
| Enable another session to be constructed that shares the physical connection with the nSession being passed. More...
|
|
static nSession | createMultiplexed (nSession session, String user) throws nIllegalArgumentException |
| Enable another session to be constructed that shares the physical connection with the nSession being passed. More...
|
|
static nSession | createMultiplexed (nSession session, String user, String passwd) throws nIllegalArgumentException |
| Enable another session to be constructed that shares the physical connection with the nSession being passed. More...
|
|
static nSession | createMultiplexed (nSessionAttributes sessionAttributes) throws nIllegalArgumentException, nSessionNotConnectedException |
| Enable another session to be constructed that shares the physical connection with the nSession whose nSessionAttributes are being passed. More...
|
|
static nSession | createMultiplexed (nSessionAttributes sessionAttributes, String userName) throws nIllegalArgumentException, nSessionNotConnectedException |
| Enable another session to be constructed that shares the physical connection with the nSession whose nSessionAttributes are being passed. More...
|
|
static nSession | createMultiplexed (nSessionAttributes sessionAttributes, String userName, String passwd) throws nIllegalArgumentException, nSessionNotConnectedException |
| Enable another session to be constructed that shares the physical connection with the nSession whose nSessionAttributes are being passed. More...
|
|
static int | getNoVended () |
| Gets the number of nirvana sessions vended. More...
|
|
static void | shutdown () |
| Shuts down the session factory by closing all nirvana sessions that have been created.
|
|
This class is used with a nSessionAttributes object to create a Nirvana session.
Enable another session to be constructed that shares the physical connection with the nSession being passed.
Allows applications to subscribe twice to the same channel or queue using different filters, or reduce the impact of any connection limits imposed by any browser / host machine to specific hosts, since the connection count will only ever be 1.
A multiplexed session will be created only if the provided nSession has null for password and one of the following is true: 1) the provided username matches the username of the provided nSession 2) the provided username is null
If a user different from the user of the session or null is provided the sessions will not be multiplexed. In that case a regular session will be created instead.
- Parameters
-
session | the session to multiplex the connection with |
user | the username of the multiplexed session |
- Returns
- a multiplexed session instance
- Exceptions
-
- Deprecated:
- Creation of multiplexed sessions is deprecated since 10.7 and will be removed in future releases. Standard sessions should be used instead
Enable another session to be constructed that shares the physical connection with the nSession being passed.
Allows applications to subscribe twice to the same channel or queue using different filters, or reduce the impact of any connection limits imposed by any browser / host machine to specific hosts, since the connection count will only ever be 1.
A multiplexed session will be created only if one of the following is true: 1) both the provided username and the provided password are null 2) the provided username and the provided password match those of the provided nSession(nulls included)
- Parameters
-
session | the session to multiplex the connection with |
user | the username of the multiplexed session |
passwd | An optional (may be null) password that can be associated with the userName parameter |
- Returns
- a multiplexed session instance
- Exceptions
-
- Deprecated:
- Creation of multiplexed sessions is deprecated since 10.7 and will be removed in future releases. Standard sessions should be used instead
Enable another session to be constructed that shares the physical connection with the nSession whose nSessionAttributes are being passed.
Allows applications to subscribe twice to the same channel or queue using different filters, or reduce the impact of any connection limits imposed by any browser / host machine to specific hosts, since the connection count will only ever be 1.
A multiplexed session will be created only if the existing nSession has null for password and one of the following is true: 1) the provided username matches the username of the existing nSession 2) the provided username is null
If a user different from the user of the session or null is provided the sessions will not be multiplexed. In that case a regular session will be created instead.
- Parameters
-
sessionAttributes | the sessionAttributes of the session with which to multiplex the connection |
- Returns
- a multiplexed session
- Exceptions
-
- Deprecated:
- Creation of multiplexed sessions is deprecated since 10.7 and will be removed in future releases. Standard sessions should be used instead
Enable another session to be constructed that shares the physical connection with the nSession whose nSessionAttributes are being passed.
Allows applications to subscribe twice to the same channel or queue using different filters, or reduce the impact of any connection limits imposed by any browser / host machine to specific hosts, since the connection count will only ever be 1.
A multiplexed session will be created only if one of the following is true: 1) both the provided username and the provided password are null 2) the provided username and the provided password match those of an existing nSession(nulls included)
- Parameters
-
sessionAttributes | the sessionAttributes of the session with which to multiplex the connection |
userName | the user name used when no physical connection exists to the desired realm |
- Returns
- a multiplexed session
- Exceptions
-
- Deprecated:
- Creation of multiplexed sessions is deprecated since 10.7 and will be removed in future releases. Standard sessions should be used instead