This class is used with a nSessionAttributes object to create a Nirvana session.
More...
#include <nSessionFactory.h>
This class is used with a nSessionAttributes object to create a Nirvana session.
static void com::pcbsys::nirvana::client::nSessionFactory::close |
( |
nSession * |
pSession | ) |
|
|
static |
Closes a Nirvana session.
- Parameters
-
*pSession | The nSession object to be closed |
- Exceptions
-
Creates an nSession object (Nirvana session) based on the nSessionAttributes object and the specified reconnect handler.
- Parameters
-
*pAttr | The nSessionAttributes object containing the parameters for the session to be created |
name | The user name to be used by this session to authenticate |
- Returns
- the newly created nSession object
- 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
-
*pAttr | The nSessionAttributes object containing the parameters for the session to be created |
*pHandler | 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
-
- See Also
- nReconnectHandler
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
static void com::pcbsys::nirvana::client::nSessionFactory::shutdown |
( |
bool |
closeAllThreads = false | ) |
|
|
static |
Shuts down the session factory by closing all nirvana sessions that have been created.