- com
- pcbsys
- nirvana
- client
- nSessionFactory
This class is used with a nSessionAttributes object to create a Nirvana session. More...
Static Public Member Functions | |
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.
|
static |
Closes a Nirvana session.
session | The nSession object to be closed |
nIllegalArgumentException | if the nSession is invalid |
|
static |
Creates an nSession object (Nirvana session) based on the nSessionAttributes object supplied.
attr | The nSessionAttributes object containing the parameters for the session to be created |
nIllegalArgumentException | if the nSessionAttributes is invalid |
|
static |
Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler.
attr | The nSessionAttributes object containing the parameters for the session to be created |
handler | A nReconnectHandler to use if the connection to the Server is lost |
nIllegalArgumentException | if the nSessionAttributes is invalid |
|
static |
Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler.
attr | The nSessionAttributes object containing the parameters for the session to be created |
handler | A nReconnectHandler to use if the connection to the Server is lost |
username | The user name to be used by this session to authenticate |
nIllegalArgumentException | if the nSessionAttributes is invalid |
|
static |
Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler.
attr | The nSessionAttributes object containing the parameters for the session to be created |
handler | A nReconnectHandler to use if the connection to the Server is lost |
username | The user name to be used by this session to authenticate |
password | An optional (may be null) password that can be associated with the userName parameter |
nIllegalArgumentException | if the nSessionAttributes is invalid |
|
static |
Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler.
attr | The nSessionAttributes object containing the parameters for the session to be created |
username | The user name to be used by this session to authenticate |
nIllegalArgumentException | if the nSessionAttributes is invalid or the username |
|
static |
Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler.
attr | The nSessionAttributes object containing the parameters for the session to be created |
username | The user name to be used by this session to authenticate |
password | An optional (may be null) password that can be associated with the userName parameter |
nIllegalArgumentException | if the nSessionAttributes is invalid or the username |
|
static |
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.
session | the session to multiplex the connection with |
nIllegalArgumentException | if the session is null |
|
static |
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.
session | the session to multiplex the connection with |
user | the username of the multiplexed session |
nIllegalArgumentException | if session is null this exception will be thrown |
|
static |
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.
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 |
nIllegalArgumentException | if session is null this exception will be thrown |
|
static |
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.
sessionAttributes | the sessionAttributes of the session with which to multiplex the connection |
nIllegalArgumentException | if the sessionAttributes supplied is not valid |
|
static |
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.
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 |
nIllegalArgumentException | if the sessionAttributes supplied is not valid |
|
static |
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.
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 |
passwd | An optional (may be null) password that can be associated with the userName parameter |
nIllegalArgumentException | if the sessionAttributes supplied is not valid |
|
static |
Gets the number of nirvana sessions vended.