com.pcbsys.nirvana.client.nTransactionFactory Class Reference

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


Public Member Functions

 nTransactionFactory ()
 Default constructor for serialisation support.

Static Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

com.pcbsys.nirvana.client.nTransactionFactory.nTransactionFactory (  ) 

Default constructor for serialisation support.

Use the static methods to create nTransaction objects.


Member Function Documentation

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:
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 nTransaction com.pcbsys.nirvana.client.nTransactionFactory.create ( nTransactionAttributes  attr  )  [static]

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
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