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

Static Public Member Functions

static nTransaction create (nTransactionAttributes attr, boolean xa)
 Creates an nTransaction object (Nirvana transaction) based on the nTransactionAttributes object supplied. More...
 
static nTransaction create (nTransactionAttributes attr)
 Creates an nTransaction object (Nirvana transaction) based on the nTransactionAttributes object supplied. 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.

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,
boolean  xa 
)
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
xaSpecifies 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
static nTransaction com.pcbsys.nirvana.client.nTransactionFactory.create ( nTransactionAttributes  attr)
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
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
Deprecated:
Since 10.2 Unused API
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
Deprecated:
Since 10.2 Unused API