This class is used with a nSessionAttributes object to create a Nirvana session.
More...
This class is used with a nSessionAttributes object to create a Nirvana session.
static void com.pcbsys.nirvana.client.nSessionFactory.close |
( |
nSession |
session | ) |
|
|
static |
Closes a Nirvana session
- Parameters
-
- Exceptions
-
Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler.
- Parameters
-
- Returns
- the newly created nSession object
- Exceptions
-
Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler.
- Parameters
-
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 | A String token to use when authenticating with the server |
- Returns
- the newly created nSession object
- Exceptions
-
nReconnectHandler
Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler.
- Parameters
-
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 |
- Returns
- the newly created nSession object
- Exceptions
-
static nSession com.pcbsys.nirvana.client.nSessionFactory.createMultiplexed |
( |
nSession |
session | ) |
|
|
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.
- Parameters
-
session | session the session to muliplex the connection with |
- Returns
- a multiplexed session
static nSession com.pcbsys.nirvana.client.nSessionFactory.createMultiplexed |
( |
nSession |
session, |
|
|
String |
newUsername |
|
) |
| |
|
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.
- Parameters
-
session | session the session to muliplex the connection with |
newUsername | Used to specify a different Username than that of the original nSession connection |
- Returns
- a multiplexed session
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.
- Parameters
-
sessionAttributes | the sessionAttributes of the session with which to multiplex the connection |
- Returns
- a multiplexed session
static nSession com.pcbsys.nirvana.client.nSessionFactory.createMultiplexed |
( |
nSessionAttributes |
sessionAttributes, |
|
|
String |
userName |
|
) |
| |
|
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.
- 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
static int com.pcbsys.nirvana.client.nSessionFactory.getNoVended |
( |
| ) |
|
|
static |
Gets the number of nirvana sessions vended
- Returns
- an int specifying the number of nirvana sessions vended with this session factory