Joram 4.3.32

org.objectweb.joram.client.jms
Class FactoryParameters

java.lang.Object
  extended by org.objectweb.joram.client.jms.FactoryParameters
All Implemented Interfaces:
java.io.Serializable

public class FactoryParameters
extends java.lang.Object
implements java.io.Serializable

A FactoryParameters instance holds a <XA>ConnectionFactory configuration parameters.

See Also:
Serialized Form

Field Summary
 boolean asyncSend
          Determines whether the produced messages are asynchronously sent or not (without or with acknowledgement) Default is false (with ack).
 int cnxPendingTimer
          Period in milliseconds between two ping requests sent by the client connection to the server; if the server does not receive any ping request during more than 2 * cnxPendingTimer, the connection is considered as dead and processed as required.
 int connectingTimer
          Duration in seconds during which connecting is attempted (connecting might take time if the server is temporarily not reachable); the 0 value is set for connecting only once and aborting if connecting failed.
 boolean multiThreadSync
          Determines whether client threads which are using the same connection are synchronized in order to group together the requests they send.
 int multiThreadSyncDelay
          The maximum time the threads hang if 'multiThreadSync' is true.
 int multiThreadSyncThreshold
          The maximum numbers of threads that hang if 'multiThreadSync' is true.
 int queueMessageReadMax
          The maximum number of messages that can be read at once from a queue.
 int topicAckBufferMax
          The maximum number of acknowledgements that can be buffered in Session.DUPS_OK_ACKNOWLEDGE mode when listening to a topic.
 int topicActivationThreshold
          This threshold is the minimum messages number below which the subscription is activated.
 int topicPassivationThreshold
          This threshold is the maximum messages number over which the subscription is passivated.
 int txPendingTimer
          Duration in seconds during which a JMS transacted (non XA) session might be pending; above that duration the session is rolled back and closed; the 0 value means "no timer".
 
Constructor Summary
FactoryParameters()
          Constructs an empty FactoryParameters.
FactoryParameters(java.lang.String url)
          Constructs a FactoryParameters instance.
FactoryParameters(java.lang.String host, int port)
          Constructs a FactoryParameters instance.
 
Method Summary
 java.util.Hashtable code(java.util.Hashtable h, java.lang.String prefix)
           
 void decode(java.util.Hashtable h, java.lang.String prefix)
           
 void fromReference(javax.naming.Reference ref, java.lang.String prefix)
           
 java.lang.String getHost()
          Returns the name of host hosting the server to create connections with.
 int getPort()
          Returns the port to be used for accessing the server.
 java.lang.String getUrl()
          Returns the url.
 void toReference(javax.naming.Reference ref, java.lang.String prefix)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

connectingTimer

public int connectingTimer
Duration in seconds during which connecting is attempted (connecting might take time if the server is temporarily not reachable); the 0 value is set for connecting only once and aborting if connecting failed.


txPendingTimer

public int txPendingTimer
Duration in seconds during which a JMS transacted (non XA) session might be pending; above that duration the session is rolled back and closed; the 0 value means "no timer".


cnxPendingTimer

public int cnxPendingTimer
Period in milliseconds between two ping requests sent by the client connection to the server; if the server does not receive any ping request during more than 2 * cnxPendingTimer, the connection is considered as dead and processed as required.


asyncSend

public boolean asyncSend
Determines whether the produced messages are asynchronously sent or not (without or with acknowledgement) Default is false (with ack).


queueMessageReadMax

public int queueMessageReadMax
The maximum number of messages that can be read at once from a queue. Default is 1.


topicAckBufferMax

public int topicAckBufferMax
The maximum number of acknowledgements that can be buffered in Session.DUPS_OK_ACKNOWLEDGE mode when listening to a topic. Default is 0.


multiThreadSync

public boolean multiThreadSync
Determines whether client threads which are using the same connection are synchronized in order to group together the requests they send.


multiThreadSyncDelay

public int multiThreadSyncDelay
The maximum time the threads hang if 'multiThreadSync' is true. Either they wake up (wait time out) or they are notified (by the first woken up thread). Default value is 1ms.


multiThreadSyncThreshold

public int multiThreadSyncThreshold
The maximum numbers of threads that hang if 'multiThreadSync' is true. Default value is 10 waiting threads.


topicPassivationThreshold

public int topicPassivationThreshold
This threshold is the maximum messages number over which the subscription is passivated. Default is Integer.MAX_VALUE.


topicActivationThreshold

public int topicActivationThreshold
This threshold is the minimum messages number below which the subscription is activated. Default is 0.

Constructor Detail

FactoryParameters

public FactoryParameters(java.lang.String host,
                         int port)
Constructs a FactoryParameters instance.

Parameters:
host - Name of host hosting the server to create connections with.
port - Port to be used for accessing the server.

FactoryParameters

public FactoryParameters(java.lang.String url)
Constructs a FactoryParameters instance.

Parameters:
url - joram ha url

FactoryParameters

public FactoryParameters()
Constructs an empty FactoryParameters.

Method Detail

getHost

public java.lang.String getHost()
Returns the name of host hosting the server to create connections with.


getPort

public int getPort()
Returns the port to be used for accessing the server.


getUrl

public java.lang.String getUrl()
Returns the url.


toReference

public void toReference(javax.naming.Reference ref,
                        java.lang.String prefix)

fromReference

public void fromReference(javax.naming.Reference ref,
                          java.lang.String prefix)

code

public java.util.Hashtable code(java.util.Hashtable h,
                                java.lang.String prefix)

decode

public void decode(java.util.Hashtable h,
                   java.lang.String prefix)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Joram 4.3.32

Copyright © 2005 Scalagent - All rights reserved