com.pcbsys.nirvana.client.nTransactionFactory Class Reference

This class is used with a nTransactionAttributes object to create a Nirvana transaction. More...

Static Public Member Functions

static nTransaction create (nTransactionAttributes attr)
 Default constructor for serialisation support. More...
 
static nTransaction create (nTransactionAttributes attr, long oldTXId)
 Creates an nTransaction object (Nirvana transaction) based on the nTransactionAttributes object supplied More...
 
static int getPublishBufferSize ()
 Gets the size of the publish transaction buffer More...
 
static void setPublishBufferSize (int size)
 Sets the size of the publish transaction buffer More...
 

Detailed Description

This class is used with a nTransactionAttributes object to create a Nirvana transaction.

Member Function Documentation

static nTransaction com.pcbsys.nirvana.client.nTransactionFactory.create ( nTransactionAttributes  attr)
static

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
attrThe nTransactionAttributes object containing the parameters for the transaction to be created
Returns
the newly created nTransaction object
static nTransaction com.pcbsys.nirvana.client.nTransactionFactory.create ( nTransactionAttributes  attr,
long  oldTXId 
)
static

Creates an nTransaction object (Nirvana transaction) based on the nTransactionAttributes object supplied

Parameters
attrThe nTransactionAttributes object containing the parameters for the transaction to be created
oldTXIdcan be used when reconstructing a transaction object from a previously known ID. If value less than 0 is supplied a new TXId will be allocated.
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
sizeAn int specifying the size of the publish transaction buffer