This class is used with a nTransactionAttributes object to create a Nirvana transaction.
More...
This class is used with a nTransactionAttributes object to create a Nirvana transaction.
com.pcbsys.nirvana.client.nTransactionFactory.nTransactionFactory |
( |
| ) |
|
Default constructor for serialisation support.
Use the static methods to create nTransaction objects.
Creates an nTransaction object (Nirvana transaction) based on the nTransactionAttributes object supplied.
- Parameters
-
attr | The nTransactionAttributes object containing the parameters for the transaction to be created |
xa | Specifies whether we honour a 2-phase commit and always send the event to the server in each publish call |
- Returns
- the newly created nTransaction object
Creates an nTransaction object (Nirvana transaction) based on the nTransactionAttributes object supplied.
- Parameters
-
attr | The nTransactionAttributes object containing the parameters for the transaction to be created |
oldTXId | can be used when reconstructing a transaction object from a previously known ID |
- Returns
- the newly created nTransaction object
static int com.pcbsys.nirvana.client.nTransactionFactory.getPublishBufferSize |
( |
| ) |
|
|
static |
Gets the size of the publish transaction buffer.
- Returns
- An int specifying the size of the publish transaction buffer
static void com.pcbsys.nirvana.client.nTransactionFactory.setPublishBufferSize |
( |
int |
size | ) |
|
|
static |
Sets the size of the publish transaction buffer.
- Parameters
-
size | An int specifying the size of the publish transaction buffer |