|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprogress.message.jclient.ConnectionFactory
public class ConnectionFactory
An implementation of a JMS ConnectionFactory. A client uses a ConnectionFactory to create Connections with a JMS Pub/Sub provider. This class provides all common methods for the subclasses, QueueConnectionFactory, TopicConnectionFactory, XAQueueConnectionFactory, and XATopicConnectionFactory.
QueueConnectionFactory
,
TopicConnectionFactory
,
XAQueueConnectionFactory
,
XATopicConnectionFactory
,
Serialized FormField Summary | |
---|---|
static java.lang.Integer |
ASYNCHRONOUS_DELIVERY_MODE_DEFAULT
The default value for setAsynchronousDeliveryMode(Integer): specifies that the SonicMQ client runtime should make the decision whether or not to send messages asynchronously. |
static java.lang.String |
CLIENT_TRANSACTION_BUFFER_SIZE
|
static java.lang.String |
COMPRESSION_FACTORY
|
static java.lang.String |
COMPRESSION_METRICS_LISTENER
|
static java.lang.Long |
DELIVERY_CLOSE_TIMEOUT_DEFAULT
Default value for setDeliveryCloseTimeout(Long): do not wait for messages to be delivered on close. |
static java.lang.Integer |
DELIVERY_DOUBT_WINDOW_DEFAULT
Default value for setDeliveryDoubtWindow(Integer): no limit on the number of in doubt messages. |
static java.lang.String |
ENABLE_COMPRESSION
|
static java.lang.String |
ENABLE_LOCAL_STORE
|
static java.lang.String |
FAULT_TOLERANT
|
static java.lang.String |
FAULT_TOLERANT_RECONNECT_TIMEOUT
|
static java.lang.String |
FLOW_TO_DISK
|
static java.lang.String |
HTTP
|
static java.lang.String |
INITIAL_CONNECT_TIMEOUT
|
static java.lang.String |
LG_DOWN_STREAM_NODE_TYPE
|
static java.lang.String |
LG_ENABLED
|
static java.lang.String |
LOCAL_STORE_DIRECTORY
|
static java.lang.String |
LOCAL_STORE_LISTENER_FACTORY_CLASS
|
static java.lang.String |
LOCAL_STORE_SIZE
|
static java.lang.String |
LOCAL_STORE_WAIT_TIME
|
static java.lang.String |
LOGIN_SPI_OBJECT
This variable stores the Login SPI implementaion object into the env. |
static java.lang.String |
PING_INTERVAL
|
static java.lang.String |
RECONNECT_INTERVAL
|
static java.lang.String |
RECONNECT_TIMEOUT
|
static java.lang.String |
SOCKET_CONNECT_TIMEOUT
|
static java.lang.String |
SSL
|
static java.lang.String |
TCP
|
Constructor Summary | |
---|---|
ConnectionFactory()
Construct a ConnectionFactory with the default URL |
|
ConnectionFactory(java.lang.String brokerURL)
Construct a ConnectionFactory (with a default connectID, user and password of ""). |
|
ConnectionFactory(java.lang.String brokerHostName,
int brokerPort,
java.lang.String brokerProtocol,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
Construct a ConnectionFactory (with a default connectID of null). |
|
ConnectionFactory(java.lang.String brokerHostName,
int brokerPort,
java.lang.String brokerProtocol,
java.lang.String connectID,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
Construct a ConnectionFactory. |
|
ConnectionFactory(java.lang.String brokerURL,
java.lang.String connectID)
Construct a ConnectionFactory (with a default user and password of ""). |
|
ConnectionFactory(java.lang.String brokerURL,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
Construct a ConnectionFactory (with a default connectID of null). |
|
ConnectionFactory(java.lang.String brokerURL,
java.lang.String connectID,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
Construct a ConnectionFactory. |
Method Summary | |
---|---|
Connection |
createConnection()
Creates a connection with the default user identity. |
Connection |
createConnection(java.lang.String userName,
java.lang.String password)
Creates a connection with the specified user identity. |
java.applet.Applet |
getApplet()
|
java.lang.Integer |
getAsynchronousDeliveryMode()
Gets whether or not messages sent by MessageProducers on a Connection's producers should be sent to the broker synchronously or asynchronously. |
java.lang.String |
getBrokerHostName()
|
int |
getBrokerPort()
|
java.lang.String |
getBrokerProtocol()
|
java.lang.String |
getBrokerURL()
|
java.lang.String |
getClientID()
|
java.lang.Long |
getClientTransactionBufferSize()
Get client transaction buffer size. |
java.lang.String |
getCompressionFactory()
Queries the ConnectionFactory of the class name of the compression factory. |
java.lang.String |
getConnectID()
|
java.lang.String |
getConnectionURLs()
Return list of brokers to try to connect to. |
java.lang.String |
getDefaultPassword()
|
int |
getDefaultTxnBatchSize()
Gets the default batch size |
java.lang.Integer |
getDefaultTxnBatchSizeInteger()
Gets the default batch size |
java.lang.String |
getDefaultUser()
|
java.lang.Long |
getDeliveryCloseTimeout()
The amount of time in milliseconds to wait on a per Session basis for unsent messages to be sent to the broker when a Session is closed. |
java.lang.Integer |
getDeliveryDoubtWindow()
Gets the limit on the number of unacknowledged messages per Session when asynchronous message delivery is enabled. |
java.lang.Boolean |
getDurableMessageOrder()
Determines whether the option to preserve message order when reconnecting a durable subscriber has been selected. |
boolean |
getEnableActionalInstrumentation()
Queries the ConnectionFactory to see if the LG instrumentation is currently enabled. |
java.lang.Boolean |
getEnableActionalInstrumentationBoolean()
Queries the ConnectionFactory to see if the LG instrumentation is currently enabled. |
boolean |
getEnableCompression()
Queries the ConnectionFactory to see if compression is enabled. |
java.lang.Boolean |
getEnableCompressionBoolean()
Queries the ConnectionFactory to see if compression is enabled. |
java.lang.Boolean |
getFaultTolerant()
Determines whether fault tolerant connection creation is enabled. |
java.lang.Integer |
getFaultTolerantReconnectTimeout()
Get fault tolerance reconnect timeout. |
java.lang.Integer |
getFlowToDisk()
Determines the setting of Flow-To-Disk Publishing property. |
java.lang.Integer |
getInitialConnectTimeout()
Get initial connect timeout for a fault-tolerant connection. |
java.lang.Integer |
getInitialRcvBufferSize()
Gets the initial size of the buffer (in bytes) used when reading message traffic from the network transport. |
java.lang.Integer |
getInitialSendBufferSize()
Gets the initial size of the buffer (in bytes) used to buffer message traffic prior to writing to the network transport. |
int |
getLGDownStreamNodeType()
|
boolean |
getLoadBalancing()
Determines whether client-side load balancing is enabled. |
java.lang.Boolean |
getLoadBalancingBoolean()
Determines whether client-side load balancing is enabled. |
java.lang.String |
getLoadBalancingClientData()
Gets the additional information to be provided to the broker side load balancer to assist in making load balancing decisions. |
java.lang.String |
getLocalStoreDirectory()
Gets the name of the directory where the local storage for the persistent client connection is located. |
long |
getLocalStoreSize()
Get limit on how many messages can be stored locally on the persistent client while operating disconnected(offline). |
java.lang.Long |
getLocalStoreSizeLong()
Get limit on how many messages can be stored locally on the persistent client while operating disconnected(offline). |
java.lang.Integer |
getLocalStoreWaitTime()
Gets the limit (in seconds) on how long a sender send call waits before the message is written to the local store. |
java.lang.String |
getLoginSPI()
Used to set the class name that implements ILogin interface. |
java.lang.Integer |
getMaxDeliveryCount()
Gets the maximum number of times delivery of a message to a consumer should be attempted. |
java.lang.Integer |
getMaxRcvBufferSize()
Gets the maximum size of the buffer (in bytes) used when reading message traffic from the network transport. |
java.lang.Integer |
getMaxSendBufferSize()
Gets the maximum size of the buffer (in bytes) used to buffer message traffic prior to writing to the network transport. |
java.lang.Integer |
getMinRcvBufferSize()
Gets the minimum size of the buffer (in bytes) used when reading message traffic from the network transport. |
java.lang.Integer |
getMinSendBufferSize()
Gets the minimum size of the buffer (in bytes) used to buffer message traffic prior to writing to the network transport. |
java.lang.Integer |
getMonitorInterval()
Gets the administrative flow control monitoring interval. |
boolean |
getPersistentDelivery()
Determines whether the default of PERSISTENT delivery should be applied to publishers. |
java.lang.Boolean |
getPersistentDeliveryBoolean()
Determines whether the default of PERSISTENT delivery should be applied to publishers. |
long |
getPingInterval()
Get the connection ping interval. |
java.lang.Long |
getPingIntervalLong()
Get the connection ping interval. |
int |
getPrefetchCount()
Get the prefetch count for the QueueReceiver. |
java.lang.Integer |
getPrefetchCountInteger()
Get the prefetch count for the QueueReceiver. |
int |
getPrefetchThreshold()
Get the default prefetch threshold for the QueueReceiver. |
java.lang.Integer |
getPrefetchThresholdInteger()
Get the prefetch threshold for the QueueReceiver. |
java.lang.Integer |
getQopCacheSize()
Gets the number of destination<->QOP entries that are retained for Sessions that are derived from this factory. |
int |
getReconnectInterval()
Applicable to persistent client connections only. |
java.lang.Integer |
getReconnectIntervalInteger()
Applicable to persistent client connections only. |
int |
getReconnectTimeout()
Applicable to persistent client connections only. |
java.lang.Integer |
getReconnectTimeoutInteger()
Applicable to persistent client connections only. |
javax.naming.Reference |
getReference()
Return a javax.naming.Reference object which contains the reference information necessary to create an object of the proper type. |
boolean |
getRequireActionalJMSNode()
Queries if the JMS node should be reported by the LG upstream node, i.e., the broker. |
java.lang.Boolean |
getRequireActionalJMSNodeBoolean()
Queries if the JMS node should be reported by the LG upstream node, i.e., the broker. |
java.lang.Boolean |
getRethrowCCRuntimeExceptions()
Gets the value for determining whether to rethrow RuntimeExceptions encountered by a ConnectionConsumer's onMesssage(). |
java.lang.Boolean |
getSelectorAtBroker()
|
boolean |
getSequential()
Determines whether the option to start with the first or a random element of the broker list has been selected. |
java.lang.Boolean |
getSequentialBoolean()
Determines whether the option to start with the first or a random element of the broker list has been selected. |
java.lang.Integer |
getSocketConnectTimeout()
Gets the setting of the socket connect timeout property. |
java.lang.Boolean |
getSplitMultiTopicDelivery()
Gets the default value for splitting MultiTopic message delivery. |
java.lang.String |
getUrlsOrUrl()
Return list of brokers to try to connect to. |
boolean |
isEnableLocalStore()
Queries the ConnectionFactory to see if the LocalStore feature(persistent client feature) is currently enabled. |
java.lang.Boolean |
isEnableLocalStoreBoolean()
Queries the ConnectionFactory to see if the LocalStore feature(persistent client feature) is currently enabled. |
void |
setApplet(java.applet.Applet applet)
|
void |
setAsynchronousDeliveryMode(java.lang.Integer mode)
Sets whether or not messages sent by MessageProducers on a connection's producers should be sent to the broker synchronously or asynchronously. |
void |
setBrokerHostName(java.lang.String brokerHostName)
|
void |
setBrokerPort(int brokerPort)
|
void |
setBrokerProtocol(java.lang.String brokerProtocol)
|
void |
setBrokerURL(java.lang.String brokerURL)
|
void |
setClientID(java.lang.String clientID)
|
void |
setClientTransactionBufferSize(java.lang.Long size)
Set client transaction buffer size. |
void |
setCompressionFactory(java.lang.String factory)
Set the class name of the compression factory. |
void |
setConnectID(java.lang.String connectID)
|
void |
setConnectionURLs(java.lang.String brokerList)
Configures a list of brokers to try when creating a connection. |
void |
setDefaultPassword(java.lang.String password)
|
void |
setDefaultTxnBatchSize(int size)
Sets the default batch size of all sessions, created via connections created from this ConnectionFactory. |
void |
setDefaultTxnBatchSizeInteger(java.lang.Integer size)
Sets the default batch size of all sessions, created via connections created from this ConnectionFactory. |
void |
setDefaultUser(java.lang.String username)
|
void |
setDeliveryCloseTimeout(java.lang.Long timeout)
The amount of time in milliseconds to wait on a per Session basis for unsent messages to be sent to the broker when a Session is closed. |
void |
setDeliveryDoubtWindow(java.lang.Integer numMessages)
Sets the limit on the number of unacknowledged messages per Session when asynchronous message delivery is enabled. |
void |
setDurableMessageOrder(java.lang.Boolean durableSubscriberMessageOrder)
Enable or disable preservation of message order for reconnecting durable subscribers. |
void |
setEnableActionalInstrumentation(boolean enabled)
Set to indicate if the LG instrumentation is enabled locally. |
void |
setEnableActionalInstrumentationBoolean(java.lang.Boolean enabled)
Set to indicate if the LG instrumentation is enabled locally. |
void |
setEnableCompression(boolean enabled)
Set to indicate if compression should be enabled for the connections. |
void |
setEnableCompressionBoolean(java.lang.Boolean enabled)
Set to indicate if compression should be enabled for the connections. |
void |
setEnableLocalStore(boolean value)
Enable the LocalStore feature(persistent client feature).Enabling the persistent client provides a way for a client application to continue sending messages despite losing connection with the broker. |
void |
setEnableLocalStoreBoolean(java.lang.Boolean value)
Enable the LocalStore feature(persistent client feature).Enabling the persistent client provides a way for a client application to continue sending messages despite losing connection with the broker. |
void |
setFaultTolerant(java.lang.Boolean faultTolerant)
Enable or disable fault tolerant connection creation. |
void |
setFaultTolerantReconnectTimeout(java.lang.Integer seconds)
Set fault tolerance reconnect timeout. |
void |
setFlowToDisk(java.lang.Integer flag)
Enable or disable Flow-To-Disk Publishing. |
void |
setInitialConnectTimeout(java.lang.Integer seconds)
Set initial connect timeout for a fault-tolerant connection. |
void |
setInitialRcvBufferSize(java.lang.Integer value)
Sets the initial size of the buffer (in bytes) used when reading message traffic from the network transport. |
void |
setInitialSendBufferSize(java.lang.Integer value)
Sets the initial size of the buffer (in bytes) used to buffer message traffic prior to writing to the network transport. |
void |
setLGDownStreamNodeType(int peerType)
|
void |
setLoadBalancing(boolean loadBalancing)
Enable or disable client-side load balancing. |
void |
setLoadBalancingBoolean(java.lang.Boolean loadBalancing)
Enable or disable client-side load balancing. |
void |
setLoadBalancingClientData(java.lang.String clientData)
This can be set to provide additional information to assist the broker side load balancer when making load balancing decisions. |
void |
setLocalStoreDirectory(java.lang.String name)
Sets the name of the directory where the local storage for the persistent client connection will be located. |
void |
setLocalStoreSize(long size)
Sets limit on how many messages can be stored locally on the persistent client while operating disconnected(offline). |
void |
setLocalStoreSizeLong(java.lang.Long size)
Sets limit on how many messages can be stored locally on the persistent client while operating disconnected(offline). |
void |
setLocalStoreWaitTime(java.lang.Integer secs)
Sets the limit (in seconds) on how long a sender send call waits before the message is written to the local store. |
void |
setLoginSPI(java.lang.String className)
Used to set the class name that implements ILogin interface. |
void |
setMaxDeliveryCount(java.lang.Integer value)
Sets the maximum number of times delivery of a message to a consumer should be attempted. |
void |
setMaxRcvBufferSize(java.lang.Integer value)
Sets the maximum size of the buffer (in bytes) used when reading message traffic from the network transport. |
void |
setMaxSendBufferSize(java.lang.Integer value)
Sets the maximum size of the buffer (in bytes) used to buffer message traffic prior to writing to the network transport. |
void |
setMinRcvBufferSize(java.lang.Integer value)
Sets the minimum size of the buffer (in bytes) used when reading message traffic from the network transport. |
void |
setMinSendBufferSize(java.lang.Integer value)
Sets the minimum size of the buffer (in bytes) used to buffer message traffic prior to writing to the network transport. |
void |
setMonitorInterval(java.lang.Integer interval)
Set the administrative flow control monitoring interval. |
void |
setPersistentDelivery(boolean persistentDelivery)
Enable or disable persistent delivery. |
void |
setPersistentDeliveryBoolean(java.lang.Boolean persistentDelivery)
Enable or disable persistent delivery. |
void |
setPingInterval(long interval)
Enable/disable sending active pings on a connection. |
void |
setPingIntervalLong(java.lang.Long interval)
Enable/disable sending active pings on a connection. |
void |
setPrefetchCount(int count)
Set the prefetch count for the QueueReceiver. |
void |
setPrefetchCountInteger(java.lang.Integer count)
Set the prefetch count for the QueueReceiver. |
void |
setPrefetchThreshold(int val)
Set the default prefetch threshold for the QueueReceivers. |
void |
setPrefetchThresholdInteger(java.lang.Integer val)
Set the default prefetch threshold for the QueueReceiver. |
void |
setQopCacheSize(java.lang.Integer value)
Sets the number of destination<->QOP entries that are retained for Sessions that are derived from this factory. |
void |
setReconnectInterval(int secs)
Applicable to persistent client connections only. |
void |
setReconnectIntervalInteger(java.lang.Integer secs)
Applicable to persistent client connections only. |
void |
setReconnectTimeout(int minutes)
Applicable to persistent client connections only. |
void |
setReconnectTimeoutInteger(java.lang.Integer minutes)
Applicable to persistent client connections only. |
void |
setRequireActionalJMSNode(boolean required)
Set to indicate if the JMS node should be reported by the LG upstream node, i.e., the broker. |
void |
setRequireActionalJMSNodeBoolean(java.lang.Boolean required)
Set to indicate if the JMS node should be reported by the LG upstream node, i.e., the broker. |
void |
setRethrowCCRuntimeExceptions(java.lang.Boolean value)
Sets the value for determining whether to rethrow RuntimeExceptions encountered by a ConnectionConsumer's onMesssage(). |
void |
setSelectorAtBroker(java.lang.Boolean flag)
If set to true, the message selector logic is performed at the JMS server (broker). |
void |
setSequential(boolean sequential)
Specifies whether to start with the first broker in the list or a random element. |
void |
setSequentialBoolean(java.lang.Boolean sequential)
Specifies whether to start with the first broker in the list or a random element. |
void |
setSocketConnectTimeout(java.lang.Integer value)
Sets a timeout to be used when establishing a socket connection to the broker. |
void |
setSplitMultiTopicDelivery(java.lang.Boolean value)
Sets the default value for splitting MultiTopic message delivery. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ENABLE_LOCAL_STORE
public static final java.lang.String LOCAL_STORE_DIRECTORY
public static final java.lang.String LOCAL_STORE_SIZE
public static final java.lang.String LOCAL_STORE_WAIT_TIME
public static final java.lang.String RECONNECT_TIMEOUT
public static final java.lang.String RECONNECT_INTERVAL
public static final java.lang.String LOCAL_STORE_LISTENER_FACTORY_CLASS
public static final java.lang.String PING_INTERVAL
public static final java.lang.String FAULT_TOLERANT
public static final java.lang.String FAULT_TOLERANT_RECONNECT_TIMEOUT
public static final java.lang.String INITIAL_CONNECT_TIMEOUT
public static final java.lang.String CLIENT_TRANSACTION_BUFFER_SIZE
public static final java.lang.String FLOW_TO_DISK
public static final java.lang.String SOCKET_CONNECT_TIMEOUT
public static final java.lang.String LG_ENABLED
public static final java.lang.String LG_DOWN_STREAM_NODE_TYPE
public static final java.lang.String ENABLE_COMPRESSION
public static final java.lang.String COMPRESSION_FACTORY
public static final java.lang.String COMPRESSION_METRICS_LISTENER
public static final java.lang.String TCP
public static final java.lang.String HTTP
public static final java.lang.String SSL
public static final java.lang.String LOGIN_SPI_OBJECT
public static final java.lang.Long DELIVERY_CLOSE_TIMEOUT_DEFAULT
public static final java.lang.Integer DELIVERY_DOUBT_WINDOW_DEFAULT
public static final java.lang.Integer ASYNCHRONOUS_DELIVERY_MODE_DEFAULT
Constructor Detail |
---|
public ConnectionFactory() throws JMSException
JMSException
public ConnectionFactory(java.lang.String brokerURL) throws JMSException
brokerURL
- the URL (in the form [protocol://]hostname[:port])
of the message broker to which connection are made.
JMSException
- if a connection factory can not be created.public ConnectionFactory(java.lang.String brokerURL, java.lang.String connectID) throws JMSException
brokerURL
- the URL (in the form [protocol://]hostname[:port])
of the message broker to which connection are made.connectID
- the id string used to identify connection. May be null.
JMSException
- if a connection factory can not be created.public ConnectionFactory(java.lang.String brokerURL, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
brokerURL
- the URL (in the form [protocol://]hostname[:port])
of the message broker to which connection are made.defaultUserName
- the default user namedefaultPassword
- the default password
JMSException
- if a connection factory can not be created.public ConnectionFactory(java.lang.String brokerURL, java.lang.String connectID, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
brokerURL
- the URL (in the form [protocol://]hostname[:port])
of the message broker to which connection are made.connectID
- the id string used to identify connection. This may be null.defaultUserName
- the default user namedefaultPassword
- the default password
JMSException
- if a connection factory can not be created.public ConnectionFactory(java.lang.String brokerHostName, int brokerPort, java.lang.String brokerProtocol, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
brokerHostName
- the broker host name,brokerPort
- the broker port numberbrokerProtocol
- the broker protocol, can be null or ""defaultUserName
- the default user namedefaultPassword
- the default password
JMSException
- if a connection factory can not be created.public ConnectionFactory(java.lang.String brokerHostName, int brokerPort, java.lang.String brokerProtocol, java.lang.String connectID, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
brokerHostName
- the broker host name,brokerPort
- the broker port numberbrokerProtocol
- the broker protocol, can be null or ""connectID
- the id string used to identify connection. This may be null.defaultUserName
- the default user namedefaultPassword
- the default password
JMSException
- if a connection factory can not be created.Method Detail |
---|
public void setEnableLocalStore(boolean value)
value
- the boolean value to enable/disable the featureisEnableLocalStore()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSize(long)
,
getLocalStoreSize()
,
setReconnectTimeout(int)
,
getReconnectTimeout()
,
setReconnectInterval(int)
,
getReconnectInterval()
,
setLocalStoreWaitTime(Integer)
,
getLocalStoreWaitTime()
public void setEnableLocalStoreBoolean(java.lang.Boolean value)
value
- the Boolean value to enable/disable the featureisEnableLocalStoreBoolean()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSizeLong(Long)
,
getLocalStoreSizeLong()
,
setReconnectTimeoutInteger(Integer)
,
getReconnectTimeoutInteger()
,
setReconnectIntervalInteger(Integer)
,
getReconnectIntervalInteger()
,
setLocalStoreWaitTime(Integer)
,
getLocalStoreWaitTime()
public boolean isEnableLocalStore()
setEnableLocalStore(boolean)
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSize(long)
,
getLocalStoreSize()
,
setReconnectTimeout(int)
,
getReconnectTimeout()
,
setReconnectInterval(int)
,
getReconnectInterval()
,
setLocalStoreWaitTime(Integer)
,
getLocalStoreWaitTime()
public java.lang.Boolean isEnableLocalStoreBoolean()
setEnableLocalStoreBoolean(Boolean)
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSizeLong(Long)
,
getLocalStoreSizeLong()
,
setReconnectTimeoutInteger(Integer)
,
getReconnectTimeoutInteger()
,
setReconnectIntervalInteger(Integer)
,
getReconnectIntervalInteger()
,
setLocalStoreWaitTime(Integer)
,
getLocalStoreWaitTime()
public void setLocalStoreDirectory(java.lang.String name)
name
- String value containing the name of the directory to use
(default is the current working directory)setEnableLocalStore(boolean)
,
isEnableLocalStore()
,
getLocalStoreDirectory()
,
setLocalStoreSize(long)
,
getLocalStoreSize()
,
setReconnectTimeout(int)
,
getReconnectTimeout()
,
setReconnectInterval(int)
,
getReconnectInterval()
,
setLocalStoreWaitTime(Integer)
,
getLocalStoreWaitTime()
public java.lang.String getLocalStoreDirectory()
setEnableLocalStore(boolean)
,
isEnableLocalStore()
,
setLocalStoreDirectory(String)
,
setLocalStoreSize(long)
,
getLocalStoreSize()
,
setReconnectTimeout(int)
,
getReconnectTimeout()
,
setReconnectInterval(int)
,
getReconnectInterval()
,
setLocalStoreWaitTime(Integer)
,
getLocalStoreWaitTime()
public void setLocalStoreSize(long size)
size
- maximum size of the local store (in Kilobytes).setEnableLocalStore(boolean)
,
isEnableLocalStore()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
getLocalStoreSize()
,
setReconnectTimeout(int)
,
getReconnectTimeout()
,
setReconnectInterval(int)
,
getReconnectInterval()
,
setLocalStoreWaitTime(Integer)
,
getLocalStoreWaitTime()
public void setLocalStoreSizeLong(java.lang.Long size)
size
- maximum size of the local store (in Kilobytes).setEnableLocalStoreBoolean(Boolean)
,
isEnableLocalStoreBoolean()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
getLocalStoreSizeLong()
,
setReconnectTimeoutInteger(Integer)
,
getReconnectTimeoutInteger()
,
setReconnectIntervalInteger(Integer)
,
getReconnectIntervalInteger()
,
setLocalStoreWaitTime(Integer)
,
getLocalStoreWaitTime()
public long getLocalStoreSize()
setEnableLocalStore(boolean)
,
isEnableLocalStore()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSize(long)
,
setReconnectTimeout(int)
,
getReconnectTimeout()
,
setReconnectInterval(int)
,
getReconnectInterval()
,
setLocalStoreWaitTime(Integer)
,
getLocalStoreWaitTime()
public java.lang.Long getLocalStoreSizeLong()
setEnableLocalStoreBoolean(Boolean)
,
isEnableLocalStoreBoolean()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSizeLong(Long)
,
setReconnectTimeoutInteger(Integer)
,
getReconnectTimeoutInteger()
,
setReconnectIntervalInteger(Integer)
,
getReconnectIntervalInteger()
,
setLocalStoreWaitTime(Integer)
,
getLocalStoreWaitTime()
public void setLocalStoreWaitTime(java.lang.Integer secs)
secs
- time to wait (in seconds)setEnableLocalStoreBoolean(Boolean)
,
isEnableLocalStoreBoolean()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
getLocalStoreSizeLong()
,
setReconnectTimeoutInteger(Integer)
,
getReconnectTimeoutInteger()
,
setReconnectIntervalInteger(Integer)
,
getReconnectIntervalInteger()
,
getLocalStoreWaitTime()
public java.lang.Integer getLocalStoreWaitTime()
setEnableLocalStoreBoolean(Boolean)
,
isEnableLocalStoreBoolean()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSizeLong(Long)
,
setReconnectTimeoutInteger(Integer)
,
getReconnectTimeoutInteger()
,
setReconnectIntervalInteger(Integer)
,
getReconnectIntervalInteger()
,
setLocalStoreWaitTime(Integer)
public void setReconnectTimeout(int minutes)
Sets how long (in minutes) the offline persistent client runtime attempts to make a connection to the broker. This parameter limits the amount of time a persistent client connection may be offline before an exception is be returned to the ExceptionListener. When offline, persistent client sends are saved in the local client storage. An offline persistent client periodically attempts to make a connection to the broker based on a related parameter, the persistent client reconnect interval setting..
A value of 0(the default) indicates no limit and the persistent client runtime will try and connect indefinitely.
minutes
- maximum amount of time an offline persistent client attempts to make a broker
connection before returning an exception.setEnableLocalStore(boolean)
,
isEnableLocalStore()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSize(long)
,
getLocalStoreSize()
,
getReconnectTimeout()
,
setReconnectInterval(int)
,
getReconnectInterval()
public void setReconnectTimeoutInteger(java.lang.Integer minutes)
Sets how long (in minutes) the offline persistent client runtime attempts to make a connection to the broker. This parameter limits the amount of time a persistent client connection may be offline before an exception is be returned to the ExceptionListener. When offline, persistent client sends are saved in the local client storage. An offline persistent client periodically attempts to make a connection to the broker based on a related parameter, the persistent client reconnect interval setting.
A value of 0(the default) indicates no limit and the persistent client runtime will try and connect indefinitely.
minutes
- maximum amount of time an offline persistent client attempts to make a broker
connection before returning an exception.setEnableLocalStoreBoolean(Boolean)
,
isEnableLocalStoreBoolean()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
getLocalStoreSizeLong()
,
setLocalStoreSizeLong(Long)
,
getReconnectTimeoutInteger()
,
setReconnectIntervalInteger(Integer)
,
getReconnectIntervalInteger()
public int getReconnectTimeout()
Gets (in minutes) how long the offline persistent client runtime attempts to make a connection to the broker before returning an exception.
A value of 0(the default) indicates no limit and the runtime will try indefinitely.
setEnableLocalStore(boolean)
,
isEnableLocalStore()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
getLocalStoreSize()
,
setLocalStoreSize(long)
,
setReconnectTimeout(int)
,
setReconnectInterval(int)
,
getReconnectInterval()
public java.lang.Integer getReconnectTimeoutInteger()
Gets (in minutes) how long the offline persistent client runtime attempts to make a connection to the broker before returning an exception.
A value of 0(the default) indicates no limit and the runtime will try indefinitely.
setEnableLocalStoreBoolean(Boolean)
,
isEnableLocalStoreBoolean()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSizeLong(Long)
,
getLocalStoreSizeLong()
,
setReconnectTimeoutInteger(Integer)
,
setReconnectIntervalInteger(Integer)
,
getReconnectIntervalInteger()
public void setReconnectInterval(int secs)
Sets the interval (in seconds) at which an offline persistent client runtime attempts to make a connection to the broker. When offline, persistent client sends are saved in the local client storage. The persistent client periodically attempts to make a connection to the broker based on the persistent client reconnect interval setting. A related parameter, the reconnect timeout limits the overall amount of time a persistent client connection may be offline before an exception is be returned to the ExceptionListener.
The default is 30 seconds.
secs
- interval between offline persistent client reconnect attempts.setEnableLocalStore(boolean)
,
isEnableLocalStore()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSize(long)
,
getLocalStoreSize()
,
setReconnectTimeout(int)
,
getReconnectTimeout()
,
getReconnectInterval()
public void setReconnectIntervalInteger(java.lang.Integer secs)
Sets the interval (in seconds) at which an offline persistent client runtime attempts to make a connection to the broker. When offline, persistent client sends are saved in the local client storage. The persistent client periodically attempts to make a connection to the broker based on the persistent client reconnect interval setting. A related parameter, the reconnect timeout limits the overall amount of time a persistent client connection may be offline before an exception is be returned to the ExceptionListener.
The default is 30 seconds.
secs
- interval between offline persistent client reconnect attempts.setEnableLocalStoreBoolean(Boolean)
,
isEnableLocalStoreBoolean()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSizeLong(Long)
,
getLocalStoreSizeLong()
,
setReconnectTimeoutInteger(Integer)
,
getReconnectTimeoutInteger()
,
getReconnectIntervalInteger()
public int getReconnectInterval()
Gets the interval (in seconds) at which an offline persistent client runtime attempts to make a connection to the broker.
The default is 30 seconds.
setEnableLocalStore(boolean)
,
isEnableLocalStore()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSize(long)
,
getLocalStoreSize()
,
setReconnectTimeout(int)
,
getReconnectTimeout()
,
setReconnectInterval(int)
public java.lang.Integer getReconnectIntervalInteger()
Gets the interval (in seconds) at which an offline persistent client runtime attempts to make a connection to the broker.
The default is 30 seconds.
setEnableLocalStoreBoolean(Boolean)
,
isEnableLocalStoreBoolean()
,
setLocalStoreDirectory(String)
,
getLocalStoreDirectory()
,
setLocalStoreSizeLong(Long)
,
getLocalStoreSizeLong()
,
setReconnectTimeoutInteger(Integer)
,
getReconnectTimeoutInteger()
,
setReconnectIntervalInteger(Integer)
public java.lang.String getUrlsOrUrl()
setConnectionURLs(String)
,
setBrokerURL(String)
public void setLoginSPI(java.lang.String className)
className
- the name of the class implementing ILogin interface.
ILogin
,
IPasswordUser
public java.lang.String getLoginSPI()
ILogin
,
IPasswordUser
public void setSelectorAtBroker(java.lang.Boolean flag)
flag
- a booleangetSelectorAtBroker()
public java.lang.Boolean getSelectorAtBroker()
setSelectorAtBroker(Boolean flag)
public void setDurableMessageOrder(java.lang.Boolean durableSubscriberMessageOrder)
durableSubscriberMessageOrder
- if true, by default reconnecting durable subscribers will preserve message order)getDurableMessageOrder()
public java.lang.Boolean getDurableMessageOrder()
setDurableMessageOrder(Boolean durableSubscriberMessageOrder)
public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
javax.naming.NamingException
- if the object naming is invalid.public void setPingInterval(long interval)
interval
- indicates the (long) interval in seconds for sending a ping.
Setting interval to 0 or any negative value
effectively disables the ping.public long getPingInterval()
setPingInterval(long)
public void setPingIntervalLong(java.lang.Long interval)
interval
- indicates the (Long) interval in seconds for sending a ping.
Setting interval to 0 or any negative value
effectively disables the ping.public java.lang.Long getPingIntervalLong()
setPingIntervalLong(Long)
public void setMonitorInterval(java.lang.Integer interval)
This method which takes a Integer argument is provided for interoperability with object storage systems which require that the attributes of the stored object be of Object datatype.
interval
- The interval in seconds over which administrative monitoring of flow control will occur.
A value of 0 (zero) indicates that no monitoring will occur.getMonitorInterval()
public java.lang.Integer getMonitorInterval()
This method, which returns an Integer, is provided for interoperability
with object storage systems which require that the attributes of
the stored object be of Object datatype (as opposed in primative such as int
).
setMonitorInterval(Integer)
public void setFaultTolerant(java.lang.Boolean faultTolerant)
By default, connections are created non-fault tolerant(false). For a connection to be created fault-tolerant, fault-tolerant must be set in the ConnectionFactory, and, the broker must support(be licensed for) fault-tolerance.
faultTolerant
- true indicates the client wishes to create fault-tolerant
connectionsgetFaultTolerant()
,
Connection.isFaultTolerant()
,
setFaultTolerantReconnectTimeout(Integer)
,
getFaultTolerantReconnectTimeout()
,
setInitialConnectTimeout(Integer)
,
getInitialConnectTimeout()
,
setClientTransactionBufferSize(Long)
,
getClientTransactionBufferSize()
public java.lang.Boolean getFaultTolerant()
By default, connections are created non-fault tolerant(false). For a connection to be created fault-tolerant, fault-tolerant must be set in the ConnectionFactory, and, the broker must support(be licensed for) fault-tolerance.
setFaultTolerant(Boolean)
,
Connection.isFaultTolerant()
,
setFaultTolerantReconnectTimeout(Integer)
,
getFaultTolerantReconnectTimeout()
,
setInitialConnectTimeout(Integer)
,
getInitialConnectTimeout()
,
setClientTransactionBufferSize(Long)
,
getClientTransactionBufferSize()
public void setFaultTolerantReconnectTimeout(java.lang.Integer seconds)
Indicates how long the client runtime will try to establish a physical network connection for the purpose of connection re-establishment after failure. Applicable to fault-tolerant connections only.
For reconnects, attempts are made to the previously connected broker URL and to redundant broker URLs reported by the previously connected broker. Redundant broker URLs may be on the last connected broker(if redundant network interfaces are available), or, on a standby broker. URLs are redundantly associated if they have the same Directory Service acceptor name. The broker dynamically supplies the client runtime with redundant URL information(at connect time and on configuration change). Redundant URL information can be obtained by the progress.message.jclient.Connection methods getBrokerReconnectURLs() and getBrokerStandbyReconnectURLs().
Default 60 seconds. 0 means no timeout; the runtime will try indefinitely, or, until the broker reports that it can no longer support the fault-tolerant client. A broker can limit the amount of time it maintains state on behalf of a failed fault-tolerant client that has not reconnected by configuration of the advanced broker connections parameter "Client Reconnect Timeout".
For reconnects after connection failure, if the connection cannot be reconnected within the allocated time, an exception will be returned to the ExceptionListener(if configured), and all pending connection operations will fail. This is the usual failed connection behavior.
seconds
- maximum time in seconds to attempt reconnection of a failed
fault-tolerant connectiongetFaultTolerantReconnectTimeout()
,
setFaultTolerant(Boolean)
,
getFaultTolerant()
,
Connection.getBrokerReconnectURLs()
,
Connection.getStandbyBrokerReconnectURLs()
,
setInitialConnectTimeout(Integer)
,
getInitialConnectTimeout()
public java.lang.Integer getFaultTolerantReconnectTimeout()
setFaultTolerantReconnectTimeout(Integer)
,
setFaultTolerant(Boolean)
,
getFaultTolerant()
,
setInitialConnectTimeout(Integer)
,
getInitialConnectTimeout()
public void setInitialConnectTimeout(java.lang.Integer seconds)
Indicates how long the client runtime will try to establish a physical network connection for the purpose of initial connection establishment. Applicable to fault-tolerant connections only.
For initial connections, attempts are made against all URLs listed in the ConnectionFactory. URLs are attempted sequentially. The starting URL is normally the first in the list but can be randomly selected.
Default 30. 0 means no timeout; the runtime will try indefinitely. -1 means each URL is attempted one time only; the runtime will try each URL sequentially one at a time until a successful connection is made, or until all URLs have been tried.
For initial connection establishment, if connection cannot be made within the allocated time the ConnectionFactory create method throws a JMSException.
seconds
- maximum time in seconds to attempt initial connection of a
fault-tolerant connectiongetInitialConnectTimeout()
,
setFaultTolerant(Boolean)
,
getFaultTolerant()
,
setFaultTolerantReconnectTimeout(Integer)
,
getFaultTolerantReconnectTimeout()
public java.lang.Integer getInitialConnectTimeout()
setInitialConnectTimeout(Integer)
,
setFaultTolerant(Boolean)
,
getFaultTolerant()
,
setFaultTolerantReconnectTimeout(Integer)
,
getFaultTolerantReconnectTimeout()
public void setClientTransactionBufferSize(java.lang.Long size)
Transacted message remain in the client runtime until saved or replicated by the broker. JMS client threads sending transacted messages will block if the buffer size is reached, and resume when the broker saves or replicates more messages. A larger buffer size should yield better performance at the expense of more client memory and longer resend time during fault-tolerant reconnect.
The default setting (0) indicates that the client runtime must be able to buffer up to the broker Transactions Buffer Size parameter per transaction
size
- client transaction buffer size in bytes.getClientTransactionBufferSize()
,
setFaultTolerant(Boolean)
,
getFaultTolerant()
public java.lang.Long getClientTransactionBufferSize()
setClientTransactionBufferSize(Long)
,
setFaultTolerant(Boolean)
,
getFaultTolerant()
public void setFlowToDisk(java.lang.Integer flag)
flag
- 0 - use broker-side setting
1 - set the feature "on" for the subscriber
2 - set the feature "off" for the subscribergetFlowToDisk()
,
Constants.FLOW_TO_DISK_USE_BROKER_SETTING
,
Constants.FLOW_TO_DISK_ON
,
Note that while the type of the above constants is int, the type of the flag parameter is Integer,
therefore, if you want to use a constant, you need to pass it to the constructor of
an Integer object and pass the Integer object to this method.
public java.lang.Integer getFlowToDisk()
setFlowToDisk(Integer)
,
Constants.FLOW_TO_DISK_USE_BROKER_SETTING
,
Constants.FLOW_TO_DISK_ON
,
Note that while the type of the above constants is int, the return type of this
method is Integer. Use the intValue method to retrieve the result as int.
public void setSocketConnectTimeout(java.lang.Integer value)
A timeout of 0 is interpreted as an infinite timeout. The default value is 0.
value
- the timeout value in millisecondsgetSocketConnectTimeout()
public java.lang.Integer getSocketConnectTimeout()
setSocketConnectTimeout(Integer)
public java.lang.String getBrokerURL()
public void setBrokerURL(java.lang.String brokerURL)
public java.lang.String getConnectID()
public void setConnectID(java.lang.String connectID)
public java.lang.String getDefaultUser()
public void setDefaultUser(java.lang.String username)
public java.lang.String getDefaultPassword()
public void setDefaultPassword(java.lang.String password)
public java.lang.String getBrokerHostName()
public void setBrokerHostName(java.lang.String brokerHostName)
public java.lang.String getBrokerProtocol()
public void setBrokerProtocol(java.lang.String brokerProtocol)
public int getBrokerPort()
public void setBrokerPort(int brokerPort)
public void setApplet(java.applet.Applet applet)
public java.applet.Applet getApplet()
public java.lang.String getClientID()
public void setClientID(java.lang.String clientID) throws JMSException
JMSException
public void setLoadBalancing(boolean loadBalancing)
loadBalancing
- if true, indicates that the client is willing to have
a connect request re-directed to another broker within
a SonicMQ cluster.getLoadBalancing()
public void setLoadBalancingBoolean(java.lang.Boolean loadBalancing)
loadBalancing
- if TRUE, indicates that the client is willing to have
a connect request re-directed to another broker within
a SonicMQ cluster.getLoadBalancingBoolean()
public boolean getLoadBalancing()
setLoadBalancing(boolean)
public java.lang.Boolean getLoadBalancingBoolean()
setLoadBalancingBoolean(Boolean)
public void setLoadBalancingClientData(java.lang.String clientData)
clientData
- The information to pass to the load balancer.public java.lang.String getLoadBalancingClientData()
setLoadBalancingClientData(String)
public void setConnectionURLs(java.lang.String brokerList)
brokerList
- Comma-separated list of broker URLs.
Allows a client to connect to the first available broker on a list.
If present, this parameter overrides the brokerURL parameter in the
QueueConnectionFactory constructor, which specifies a single broker.
This option can be used independently of any other load balancing options.getConnectionURLs()
,
setSequential(boolean)
,
getSequential()
public java.lang.String getConnectionURLs()
setConnectionURLs(String)
public void setSequential(boolean sequential)
sequential
- If true, starts attempting to connect to the first broker
in the list; if false, starts attempting to connect to a random element in
the list.
After that, tries to connect to each broker in sequence
until a successful connect occurs, or the list is exhausted.getSequential()
,
setConnectionURLs(String)
,
getConnectionURLs()
public void setSequentialBoolean(java.lang.Boolean sequential)
sequential
- If TRUE, starts attempting to connect to the first broker
in the list; if FALSE, starts attempting to connect to a random element in
the list.
After that, tries to connect to each broker in sequence
until a successful connect occurs, or the list is exhausted.getSequentialBoolean()
,
setConnectionURLs(String)
,
getConnectionURLs()
public boolean getSequential()
setSequential(boolean)
,
setConnectionURLs(String)
,
getConnectionURLs()
public java.lang.Boolean getSequentialBoolean()
setSequentialBoolean(Boolean)
,
setConnectionURLs(String)
,
getConnectionURLs()
public void setPersistentDelivery(boolean persistentDelivery)
persistentDelivery
- if true, by default senders will have there default delivery mode as PERSISTENT.getPersistentDelivery()
public void setPersistentDeliveryBoolean(java.lang.Boolean persistentDelivery)
persistentDelivery
- if true, by default senders will have there default delivery mode as PERSISTENT.getPersistentDeliveryBoolean()
public boolean getPersistentDelivery()
setPersistentDelivery(boolean)
public java.lang.Boolean getPersistentDeliveryBoolean()
setPersistentDeliveryBoolean(Boolean)
public void setPrefetchCount(int count)
Note that this is a Progress SonicMQ extention not found in the
standard QueueReceiver
interface.
count
- The number of messages to prefetch in int.
JMSException
- if an invalid value is set.setPrefetchCountInteger(Integer)
,
getPrefetchCount()
public int getPrefetchCount()
setPrefetchCount(int)
,
getPrefetchCountInteger()
public void setPrefetchCountInteger(java.lang.Integer count)
Note that this is a Progress SonicMQ extention not found in the
standard QueueReceiver
interface.
count
- The number of messages to prefetch.
JMSException
- if an invalid value is set.setPrefetchCount(int)
,
getPrefetchCountInteger()
public java.lang.Integer getPrefetchCountInteger()
setPrefetchCountInteger(Integer)
,
getPrefetchCount()
public void setPrefetchThreshold(int val)
Note that this is a Progress SonicMQ extention not found in the
standard QueueReceiver
interface.
val
- The default threshold value for QueueReceivers.
JMSException
- if an invalid value is set.setPrefetchThresholdInteger(Integer)
,
getPrefetchThreshold()
public int getPrefetchThreshold()
setPrefetchThreshold(int)
,
getPrefetchThresholdInteger()
public void setPrefetchThresholdInteger(java.lang.Integer val)
Note that this is a Progress SonicMQ extention not found in the
standard QueueReceiver
interface.
val
- The default threshold value for QueueReceivers.as an Integer.
JMSException
- if an invalid value is set.setPrefetchThreshold(int)
,
getPrefetchThresholdInteger()
public java.lang.Integer getPrefetchThresholdInteger()
setPrefetchThresholdInteger(Integer)
,
getPrefetchThreshold()
public Connection createConnection() throws JMSException
Connection.start
method
is explicitly called.
createConnection
in interface ConnectionFactory
JMSException
- if the JMS provider fails to create the
connection due to some internal error.
JMSSecurityException
- if client authentication fails due to
an invalid user name or password.public Connection createConnection(java.lang.String userName, java.lang.String password) throws JMSException
Connection.start
method
is explicitly called.
createConnection
in interface ConnectionFactory
userName
- the caller's user namepassword
- the caller's password
JMSException
- if the JMS provider fails to create the
connection due to some internal error.
JMSSecurityException
- if client authentication fails due to
an invalid user name or password.public void setDefaultTxnBatchSize(int size)
size
- The number of bytes to batch, specified as an int.public int getDefaultTxnBatchSize()
public void setDefaultTxnBatchSizeInteger(java.lang.Integer size)
size
- The number of bytes to batch, specified as an Integerpublic java.lang.Integer getDefaultTxnBatchSizeInteger()
public java.lang.Boolean getSplitMultiTopicDelivery()
public void setSplitMultiTopicDelivery(java.lang.Boolean value)
value
- The split delivery value.public java.lang.Boolean getRethrowCCRuntimeExceptions()
public void setRethrowCCRuntimeExceptions(java.lang.Boolean value)
value
- The rethrow CC RuntimeExceptions value.public java.lang.Integer getQopCacheSize()
This setting is only applicable when the broker has security enabled.
public void setQopCacheSize(java.lang.Integer value)
This setting is only applicable when the broker has security enabled.
value
- The maximum number of destinations<->QOP entries that can be stored
before the oldest destination<->QOP values is discardedpublic java.lang.Integer getMaxDeliveryCount()
public void setMaxDeliveryCount(java.lang.Integer value)
The default value is 0.
value
- the delivery limitpublic void setMaxSendBufferSize(java.lang.Integer value)
value
- The buffer size or null to use the system default.public java.lang.Integer getMaxSendBufferSize()
public void setMinSendBufferSize(java.lang.Integer value)
If this value is set higher than the maximum value (or the default maximum value if it is not explicitly set in this factory) will result in the connection using the maximum value as the minimum. To avoid ambiguity set both the max and min values.
value
- The buffer size or null to use the system default.public java.lang.Integer getMinSendBufferSize()
public void setInitialSendBufferSize(java.lang.Integer value)
If the initial size is to a value higher than the maximum or lower than the minimum it will be adjusted to the value nearest possible valid value.
value
- The buffer size or null to use the default.public java.lang.Integer getInitialSendBufferSize()
public void setMaxRcvBufferSize(java.lang.Integer value)
value
- The buffer size or null to use the defaultpublic java.lang.Integer getMaxRcvBufferSize()
public void setMinRcvBufferSize(java.lang.Integer value)
If this value is set higher than the maximum value (or the default maximum value if it is not explicitly set in this factory) will result in the connection using the maximum value as the minimum. To avoid ambiguity set both the max and min values.
value
- The buffer size or null to use the defaultpublic java.lang.Integer getMinRcvBufferSize()
public void setInitialRcvBufferSize(java.lang.Integer value)
If the initial size is to a value higher than the maximum or lower than the minimum it will be adjusted to the value nearest possible valid value.
value
- The buffer size or null to use the defaultpublic java.lang.Integer getInitialRcvBufferSize()
public final void setAsynchronousDeliveryMode(java.lang.Integer mode) throws java.lang.IllegalArgumentException
Sets whether or not messages sent by MessageProducers on a connection's producers should be sent to the broker synchronously or asynchronously.
A synchronously sent message must be acknowledged as received by the broker before the send()/publish() call returns. Messages sent asynchronously do not wait for acknowledgement from the broker. This is an extension of the JMS 1.1 specification; the JMS specification does not provide the capability of asynchronous message production
Sending messages asynchronously can improve performance since the send call can return without waiting for acknowledgement, but it increases the number of messages that are in doubt if there is an application or connection failure. The number of in-doubt asynchronously produced messages can be controlled by using setDeliveryDoubtWindow(Integer)
When messages are sent asynchronously, delivery exceptions that occur on the broker will not be reported during the send call. This can complicate application development, particularly in applications for which message ordering is critical. Broker generated exceptions can be reported asynchronously by setting a RejectionListener on the Connection using Connection.setRejectionListener(RejectionListener). Asynchronous delivery exceptions are only reported on connections that explicitly set Constants.ASYNC_DELIVERY_MODE_ENABLED
Sending message asynchronously can also result in longer Connection and Session close() calls since completion of message delivery is done in the background and can be delayed for a number of reasons such as flow control or acknowledgement delays. If messages are still pending delivery then a close() call will block according the value specified by setDeliveryCloseTimeout(Long)
This setting does not apply to messages sent with DeliveryMode.DISCARDABLE delivery mode. It also does not apply to messages produced by a Producer on a transacted Session.
This setting does not override delivery modes that specify asynchronous or synchronous delivery (e.g. the deprecated delivery modes DeliveryMode.NON_PERSISTENT_SYNC and DeliveryMode.NON_PERSISTENT_ASYNC)
Default: Constants.ASYNC_DELIVERY_MODE_DEFAULT
mode
- Constant describing the asynchronous delivery mode:
java.lang.IllegalArgumentException
- if the delivery mode constant is not one of the
constants listed abovesetDeliveryDoubtWindow(Integer)
,
setDeliveryCloseTimeout(Long)
,
Constants.ASYNC_DELIVERY_MODE_DEFAULT
,
Constants.ASYNC_DELIVERY_MODE_ENABLED
,
Constants.ASYNC_DELIVERY_MODE_DISABLED
,
Connection.setRejectionListener(RejectionListener)
public final java.lang.Integer getAsynchronousDeliveryMode()
Gets whether or not messages sent by MessageProducers on a Connection's producers should be sent to the broker synchronously or asynchronously.
setAsynchronousDeliveryMode(Integer)
,
Constants.ASYNC_DELIVERY_MODE_DEFAULT
,
Constants.ASYNC_DELIVERY_MODE_ENABLED
,
Constants.ASYNC_DELIVERY_MODE_DISABLED
public final void setDeliveryCloseTimeout(java.lang.Long timeout) throws java.lang.IllegalArgumentException
The amount of time in milliseconds to wait on a per Session basis for unsent messages to be sent to the broker when a Session is closed.
A value of 0 means that the close will not wait for unsent messages to be
delivered to the broker. A value of -1 will cause close()
to block until messages
have been delivered to the broker. Otherwise a positive timeout value will wait up
to timeout for messages to be delivered to the broker.
In the event that close()
times out:
publish()
or send()
call blocked waiting for message delivery to
complete will generate a JMSException with the error code
ErrorCodes.ERR_JMS_DELIVERY_TIMEOUT_ON_CLOSEclose()
call returning.close()
will not wait for unsent messages to be delivered to
the broker.
timeout
- The amount of time in milliseconds to wait for unsent messages to
be delivered to the broker
java.lang.IllegalArgumentException
- if the value is null
or less than -1setAsynchronousDeliveryMode(Integer)
public final java.lang.Long getDeliveryCloseTimeout()
The amount of time in milliseconds to wait on a per Session basis for unsent messages to be sent to the broker when a Session is closed.
setDeliveryCloseTimeout(Long)
public final void setDeliveryDoubtWindow(java.lang.Integer numMessages) throws java.lang.IllegalArgumentException
Sets the limit on the number of unacknowledged messages per Session when asynchronous message delivery is enabled.
Receipt of asynchronously delivered messages by the broker is in doubt until
Session.close() or Connection.close() completes normally.
When close()
completes
normally any messages that could not be delivered will have been reported on the
Connection's RejectionListener (if set) prior to close()
returning. Otherwise if
the connection is terminated abnormally by a connection drop, application failure
or an Exception on close()
the limit specifies how many messages will be in doubt.
It is worth noting that if asynchronous delivery is disabled this setting has no effect. In this case only a single message for which a publish() or send() call generates an exception will be in doubt.
This setting does not apply to messages sent from within a transacted Session.
Limiting the number of indoubt messages can have a negative impact on performance as it may introduce additional protocol based tracking for produced messages.
A value of 0 indicates that there is no limit other than the Session's available buffer space. Default: 0 The number of undelivered messages is not explicitly limited.
java.lang.IllegalArgumentException
- if the value is null
or less than 0setAsynchronousDeliveryMode(Integer)
public final java.lang.Integer getDeliveryDoubtWindow()
Gets the limit on the number of unacknowledged messages per Session when asynchronous message delivery is enabled.
setDeliveryDoubtWindow(java.lang.Integer)
public void setEnableActionalInstrumentation(boolean enabled)
enabled
- the boolean value to indicate if the LG instrumentation is enabled locally.getEnableActionalInstrumentation()
public void setEnableActionalInstrumentationBoolean(java.lang.Boolean enabled)
enabled
- the Boolean value to indicate if the LG instrumentation is enabled locally.getEnableActionalInstrumentationBoolean()
public boolean getEnableActionalInstrumentation()
setEnableActionalInstrumentation(boolean)
public java.lang.Boolean getEnableActionalInstrumentationBoolean()
setEnableActionalInstrumentationBoolean(Boolean)
public void setRequireActionalJMSNode(boolean required)
required
- the boolean value to indicate if the JMS node should be reported by the LG upstream node.public void setRequireActionalJMSNodeBoolean(java.lang.Boolean required)
required
- the Boolean value to indicate if the JMS node should be reported by the LG upstream node.public boolean getRequireActionalJMSNode()
public java.lang.Boolean getRequireActionalJMSNodeBoolean()
public void setLGDownStreamNodeType(int peerType)
public int getLGDownStreamNodeType()
public void setEnableCompression(boolean enabled)
enabled
- the boolean value to indicate if compression should enabled.setEnableCompressionBoolean(Boolean)
,
getEnableCompression()
,
getEnableCompressionBoolean()
public boolean getEnableCompression()
getEnableCompressionBoolean()
,
setEnableCompression(boolean)
,
setEnableCompressionBoolean(Boolean)
public void setEnableCompressionBoolean(java.lang.Boolean enabled)
enabled
- the Boolean value to indicate if compression should enabled.setEnableCompression(boolean)
,
getEnableCompressionBoolean()
,
getEnableCompression()
public java.lang.Boolean getEnableCompressionBoolean()
setEnableCompressionBoolean(Boolean)
,
setEnableCompression(boolean)
,
getEnableCompression()
public void setCompressionFactory(java.lang.String factory)
factory
- the class name of the compression factory.getCompressionFactory()
public java.lang.String getCompressionFactory()
setCompressionFactory(String)
|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |