com.pcbsys.nirvana.base.nConstants Class Reference

A collection of Constants. More...

Static Public Member Functions

static long getEVENTWAIT ()
 Get the event wait interval. More...
 
static long getKeepAliveInterval ()
 Get the keep alive interval. More...
 
static boolean getReconnectImmediately ()
 Get Reconnect Immediately. More...
 
static long getReconnectInterval ()
 Get the reconnection interval. More...
 
static long getSLEEP ()
 Get the default sleep interval. More...
 
static long getTXPUBWAIT ()
 Get the transactional publish wait interval. More...
 
static String joinClientAppIDAndSessName (String clientAppID, String sessionName)
 Merges the clientAppID and session name in one string using a separator. More...
 
static void setEVENTWAIT (long newval)
 Set the event wait interval. More...
 
static void setKeepAliveInterval (long newval)
 Set the keep alive interval. More...
 
static void setReconnectImmediately (boolean newval)
 Set Reconnect Immediately. More...
 
static void setReconnectInterval (long newval)
 Set the reconnection interval. More...
 
static void setSLEEP (long newValue)
 Set the default sleep interval. More...
 
static void setTXPUBWAIT (long newval)
 Set the transactional publish wait interval. More...
 
static String[] splitClientAppIDAndSessionName (String input)
 For the purpose of metering we need to keep the session name and client app ID in one string and the method splits them. More...
 

Static Public Attributes

static final int CHAN_MODE_NORMAL = 100
 Channel Type.
 
static final int CHAN_RELIABLE = 1
 Channel event management.
 
static final int DEFAULT_SERVER_WINDOW_SIZE = -1
 Channel / Channel iterator.
 
static int DEFAULT_STORE_TTL = nRuntime.sStoreTTL
 Channel / Queue attributes.
 
static final int INITIAL_EID = -1
 Channel / Queue special values.
 
static final long INITIAL_EID_BEGINING_OF_STORE = -1
 StartEIDs values for Durables.
 
static final byte JMS_BASE_MESSAGE_TYPE = 0
 JMS Message Types.
 
static final long UNUSED = -1
 Exists for historical reasons and backward compatibility.
 

Detailed Description

A collection of Constants.

Member Function Documentation

static long com.pcbsys.nirvana.base.nConstants.getEVENTWAIT ( )
static

Get the event wait interval.

Returns
the event wait interval in milliseconds
static long com.pcbsys.nirvana.base.nConstants.getKeepAliveInterval ( )
static

Get the keep alive interval.

Returns
the keep alive interval
static boolean com.pcbsys.nirvana.base.nConstants.getReconnectImmediately ( )
static

Get Reconnect Immediately.

Returns
the Reconnect Immediately value
static long com.pcbsys.nirvana.base.nConstants.getReconnectInterval ( )
static

Get the reconnection interval.

Returns
the reconnection interval in milliseconds
static long com.pcbsys.nirvana.base.nConstants.getSLEEP ( )
static

Get the default sleep interval.

Returns
the default sleep interval in milliseconds
static long com.pcbsys.nirvana.base.nConstants.getTXPUBWAIT ( )
static

Get the transactional publish wait interval.

Returns
the transactional publish wait interval in milliseconds
static String com.pcbsys.nirvana.base.nConstants.joinClientAppIDAndSessName ( String  clientAppID,
String  sessionName 
)
static

Merges the clientAppID and session name in one string using a separator.

Parameters
clientAppIDthe client app id
sessionNamesession name
Returns
the joined string. if clientAppID is empty only sessionName will be returned
static void com.pcbsys.nirvana.base.nConstants.setEVENTWAIT ( long  newval)
static

Set the event wait interval.

Parameters
newvalthe new event wait interval in milliseconds
static void com.pcbsys.nirvana.base.nConstants.setKeepAliveInterval ( long  newval)
static

Set the keep alive interval.

Parameters
newvalthe new keep alive interval in milliseconds
static void com.pcbsys.nirvana.base.nConstants.setReconnectImmediately ( boolean  newval)
static

Set Reconnect Immediately.

Parameters
newvalthe new Reconnect Immediately value
static void com.pcbsys.nirvana.base.nConstants.setReconnectInterval ( long  newval)
static

Set the reconnection interval.

Parameters
newvalthe new reconnection interval in milliseconds
static void com.pcbsys.nirvana.base.nConstants.setSLEEP ( long  newValue)
static

Set the default sleep interval.

Parameters
newValuethe new default sleep interval value
static void com.pcbsys.nirvana.base.nConstants.setTXPUBWAIT ( long  newval)
static

Set the transactional publish wait interval.

Parameters
newvalthe new transactional publish wait interval in milliseconds
static String [] com.pcbsys.nirvana.base.nConstants.splitClientAppIDAndSessionName ( String  input)
static

For the purpose of metering we need to keep the session name and client app ID in one string and the method splits them.

Parameters
input-the joined value
Returns
return array of [clientAppID, sessionNAme] array. Values can't be null