|
webMethods Broker API for JMS Version 9.5.1.0.171 091713 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.jms.WmJMSConfig
public class WmJMSConfig
Defines System properties and methods used to configure webMethods JMS.
Field Summary | |
---|---|
static java.lang.String |
AUTO_QUEUE_CREATE
The System property enabling or disabling automatic queue creation. |
static java.lang.String |
BROKER_IDLE_SOCKET_TIMEOUT
The System property defining the number of seconds to wait for a response from the Broker on an idle socket. |
static java.lang.String |
BROKER_KEEP_ALIVE_ATTEMPTS
The System property defining the number of times the Broker will attempt a keep-alive before disconnecting the JMS client. |
static java.lang.String |
BROKER_KEEP_ALIVE_INTERVAL
The System property defining how often, in seconds, a keep-alive is sent from the Broker to the JMS client. |
static java.lang.String |
BROKER_KEEP_ALIVE_TIMEOUT
The System property defining the number of seconds the Broker will wait for activity from the JMS client. |
static java.lang.String |
BROKER_SOCKET_TIMEOUT_POST_CONNECTION_CLOSE
The System property defining the number of seconds to wait for a response from the Broker on the corresponding socket, after JMS Connection close has been called. |
static java.lang.String |
BROKER_TIMEOUT
The System property defining the maximum number of seconds to wait for a response from the Broker. |
static java.lang.String |
CLIENT_ID_SHARING
The System property enabling or disabling the sharing of client identifiers. |
static java.lang.String |
COMPRESSION_THRESHOLD
The System property defining the message producer's default compression threshold. |
static java.lang.String |
CONFIG_FILENAME
The configuration file name. |
static java.lang.String |
CONFIRM_DELIVERY
This System property enables or disables message delivery confirmation for persistent messages. |
static java.lang.String |
DEFAULT_BROKER_HOST
The default Broker host; defined as "localhost" . |
static int |
DEFAULT_BROKER_PORT
The default Broker port; defined as 6849 . |
static java.lang.String |
DEFAULT_DELIVERY_MODE
The System property defining the message producer's default delivery mode. |
static java.lang.String |
DEFAULT_PRIORITY
The System property defining the message producer's default priority. |
static boolean |
DEFAULT_SOCKET_KEEP_ALIVE_ENABLED
|
static boolean |
DEFAULT_SSL_FIPS_MODE_ENABLED
|
static java.lang.String |
DEFAULT_TIME_TO_LIVE
The System property defining the message producer's default time to live. |
static java.lang.String |
DISABLE_MESSAGE_DESTINATION
This System property enables or disables message destinations being sent with a message. |
static java.lang.String |
DISABLE_MESSAGE_ID
This System property enables or disables message IDs being sent in a message. |
static java.lang.String |
DISABLE_MESSAGE_TIMESTAMP
This System property enables or disables message timestamps being sent in a message. |
static java.lang.String |
JMS_CLUSTER_1PC_TRANSACTION_LOG_FILE
The System property containing the destination file name of the JMS Clustering 1PC transaction logging data. |
static java.lang.String |
KEEP_ALIVE_ATTEMPTS_BEFORE_DECLARING_CONNECTION_DROPPED
The System property defining how many times the ping could time out before declaring the connection as dropped. |
static java.lang.String |
KEEP_ALIVE_INTERVAL
The System property defining how often, in seconds, a keep-alive is sent from the JMS client to the Broker. |
static java.lang.String |
MAX_RECEIVE
The System property defining the maximum number of messages to be sent from the Broker to a consumer at one time. |
static java.lang.String |
MESSAGE_TRANSPORT_MAX_CACHE_SIZE
The System property defining the message transport's maximum size of a structure that will be cached. |
static java.lang.String |
PASSWORD
The System property to set the default password to be used with the connection. |
static java.lang.String |
RECONNECT_ATTEMPTS
The System property defining the number of times to attempt to reconnect to a Broker. |
static java.lang.String |
RECONNECT_DELAY
The System property defining the maximum amount of time, in seconds, to delay before attempting to reconnect to a Broker. |
static java.lang.String |
SOCKET_AUTO_FLUSH_DELAY
The System property defining the number of milliseconds to trigger auto-flushing to the socket. |
static java.lang.String |
SOCKET_AUTO_FLUSH_SIZE
The System property defining the number of bytes to trigger auto-flushing to the socket. |
static java.lang.String |
SOCKET_CONNECT_TIMEOUT
The System property defining how long, in seconds, to wait for a socket connection to be created. |
static java.lang.String |
SOCKET_KEEP_ALIVE_ENABLED
The System property to Enable/disable the Socket Keep Alive. |
static java.lang.String |
SOCKET_LINGER
The System property to enable or disable lingering upon socket close. |
static java.lang.String |
SOCKET_LINGER_TIMEOUT
The System property defining the number of seconds to linger if socket linger is enabled. |
static java.lang.String |
SOCKET_RECV_BUFFER_SIZE
The System property defining the size of the inbound socket buffer in bytes. |
static java.lang.String |
SOCKET_SEND_BUFFER_SIZE
The System property defining the size of the outbound socket buffer in bytes. |
static java.lang.String |
SOCKET_TCP_NO_DELAY
The System property to enable or disable Nagle's algorithm on the socket. |
static java.lang.String |
SOCKET_TIMEOUT
|
static java.lang.String |
SSL_CIPHERSUITES
The System property to set the default SSL ciphersuites to be used with the connection. |
static java.lang.String |
SSL_FIPS_MODE
The System property defining whether to use SSL FIPS Mode with the connection. |
static java.lang.String |
SSL_KEYSTORE
The System property to set the default SSL keystore to be used with the connection. |
static java.lang.String |
SSL_KEYSTORETYPE
The System property to set the default SSL keystore type to be used with the connection. |
static java.lang.String |
SSL_PROVIDER
The System property to set the default SSL provider to be used with the connection. |
static java.lang.String |
SSL_TRUSTSTORE
The System property to set the default SSL truststore to be used with the connection. |
static java.lang.String |
SSL_TRUSTSTORETYPE
The System property to set the default SSL truststore type to be used with the connection. |
static java.lang.String |
USERNAME
The System property to set the default username to be used with the connection. |
Method Summary | |
---|---|
static boolean |
getAutoQueueCreate()
Get whether automatic queue creation is enabled or disabled. |
static int |
getBrokerKeepAliveAttempts()
Get the Broker's keep-alive attempts. |
static int |
getBrokerKeepAliveInterval()
Get the Broker's keep-alive interval. |
static int |
getBrokerKeepAliveTimeout()
Get the Broker's keep-alive response timeout. |
static int |
getBrokerTimeout()
Get the Broker timeout. |
static int |
getBrokerTimeoutOnIdleSocket()
Get the Broker timeout in seconds on idle socket. |
static int |
getBrokerTimeoutPostConnectionClose()
Gets the Broker timeout in seconds post JMS Connection.close() |
static boolean |
getClientIDSharing()
Get whether client identifier sharing is enabled or disabled. |
static int |
getCompressionThreshold()
Get the default compression threshold for message producers. |
static boolean |
getConfirmDelivery()
Get whether message delivery confirmation is enabled. |
static int |
getDefaultDeliveryMode()
Get the message producer's default delivery mode. |
static int |
getDefaultPriority()
Get the message producer's default priority. |
static long |
getDefaultTimeToLive()
Get the message producer's default time to live. |
static boolean |
getDisableMessageDestination()
Get whether message destinations are sent. |
static boolean |
getDisableMessageID()
Get whether message IDs are sent. |
static boolean |
getDisableMessageTimestamp()
Get whether message timestamps are sent. |
static int |
getKeepAliveAttemptsBeforeDeclaringConnectionDead()
Get the KeepAlive attempts which need to fail with no response before declaring the connection as broken. |
static int |
getKeepAliveInterval()
Get the keep-alive interval. |
static int |
getMaxReceive()
Get the maximum number of messages to be sent from the Broker to a consumer at one time. |
static int |
getMessageTransportMaxCacheSize()
Get the messsage transport's maximum size for caching structures. |
static java.lang.String |
getPassword()
Get the password. |
static java.util.Properties |
getProperties()
Get all properties. |
static java.lang.String |
getProperty(java.lang.String name)
Get a property. |
static boolean |
getProperty(java.lang.String name,
boolean defaultValue)
Get a boolean property. |
static int |
getProperty(java.lang.String name,
int defaultValue)
Get an integer property. |
static long |
getProperty(java.lang.String name,
long defaultValue)
Get a long property. |
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Get a property. |
static int |
getReconnectAttempts()
Get the reconnect attempts. |
static int |
getReconnectDelay()
Get the reconnect delay. |
static long |
getSocketAutoFlushDelay()
Get the socket auto-flush delay. |
static int |
getSocketAutoFlushSize()
Get the socket auto-flush size. |
static int |
getSocketConnectTimeout()
Get the socket connect timeout. |
static boolean |
getSocketKeepAliveEnabled()
|
static boolean |
getSocketLinger()
Get the socket linger state. |
static int |
getSocketLingerTimeout()
Get the socket linger timeout. |
static int |
getSocketRecvBufferSize()
Get the inbound socket buffer size. |
static int |
getSocketSendBufferSize()
Get the outbound socket buffer size. |
static boolean |
getSocketTcpNoDelay()
Get the socket setting of Nagle's algorithm. |
static int |
getSoTimeout()
Get the socket connect timeout. |
static java.lang.String |
getSSLCipherSuites()
Get the SSL CipherSuites list, separated by comma |
static java.lang.String |
getSSLKeystore()
Get the SSL keystore. |
static java.lang.String |
getSSLKeystoreType()
Get the SSL keystore type. |
static java.lang.String |
getSSLProvider()
Get the SSL Provider. |
static java.lang.String |
getSSLTruststore()
Get the SSL Truststore. |
static java.lang.String |
getSSLTruststoreType()
Get the SSL Truststore type. |
static java.lang.String |
getUsername()
Get the username. |
static boolean |
isSSLFIPSModeEnabled()
Get true if the SSL FIPS Mode is enabled. |
static void |
setAutoQueueCreate(boolean autoQueueCreate)
Enable or disable automatic queue creation. |
static void |
setBrokerKeepAliveAttempts(int brokerKeepAliveAttempts)
Set the Broker's keep-alive attempts. |
static void |
setBrokerKeepAliveInterval(int brokerKeepAliveInterval)
Set the Broker's keep-alive interval. |
static void |
setBrokerKeepAliveTimeout(int brokerKeepAliveTimeout)
Set the Broker's keep-alive response timeout. |
static void |
setBrokerTimeout(int brokerTimeout)
Set the Broker timeout. |
static void |
setBrokerTimeoutOnIdleSocket(int brokerTimeoutOnIdleSocket)
Set the Broker idle socket timeout in seconds. |
static void |
setBrokerTimeoutPostConnectionClose(int brokerTimeoutPostConnectionClose)
Sets the Broker timeout in seconds post JMS Connection.close() |
static void |
setClientIDSharing(boolean clientIDSharing)
Enable or disable client identifier sharing. |
static void |
setCompressionThreshold(int compressionThreshold)
Set the default compression threshold for message producers. |
static void |
setConfirmDelivery(boolean confirmDelivery)
Set whether message delivery confirmation is enabled. |
static void |
setDefaultDeliveryMode(int defaultDeliveryMode)
Set the message producer's default delivery mode. |
static void |
setDefaultPriority(int defaultPriority)
Set the message producer's default priority. |
static void |
setDefaultTimeToLive(int defaultTimeToLive)
Set the message producer's default time to live. |
static void |
setDisableMessageDestination(boolean disableMessageDestination)
Set whether message destinations are sent. |
static void |
setDisableMessageID(boolean disableMessageID)
Set whether message IDs are sent. |
static void |
setDisableMessageTimestamp(boolean disableMessageTimestamp)
Set whether message timestamps are sent. |
static void |
setJMSCluster1PCTxLogDestination(java.lang.String txLogdestination)
Set the file name where the JMS Cluster 1PC Logging is recorded. |
static void |
setKeepAliveAttemptsBeforeDeclaringConnectionDead(int keepAliveInterval)
Set the KeepAlive attempts which need to fail with no response before declaring the connection as broken. |
static void |
setKeepAliveInterval(int keepAliveInterval)
Set the keep-alive interval. |
static void |
setMaxReceive(int maxReceive)
Set the maximum number of messages to be sent from the Broker to a consumer at one time. |
static void |
setMessageTransportMaxCacheSize(int size)
Set the messsage transport's maximum size for caching structures. |
static void |
setPassword(java.lang.String password)
Set the password. |
static void |
setProperty(java.lang.String name,
boolean value)
Set a boolean property. |
static void |
setProperty(java.lang.String name,
int value)
Set an integer property. |
static void |
setProperty(java.lang.String name,
java.lang.String value)
Set a property. |
static void |
setReconnectAttempts(int reconnectAttempts)
Set the reconnect attempts. |
static void |
setReconnectDelay(int reconnectDelay)
Set the reconnect delay. |
static void |
setSocketAutoFlushDelay(int socketAutoFlushDelay)
Set the socket auto-flush delay. |
static void |
setSocketAutoFlushSize(int socketAutoFlushSize)
Set the socket auto-flush size. |
static void |
setSocketConnectTimeout(int socketConnectTimeout)
Set the socket connect timeout. |
static void |
setSocketKeepAliveEnabled(boolean enabled)
|
static void |
setSocketLinger(boolean socketLinger)
Set the socket linger state. |
static void |
setSocketLingerTimeout(int socketLingerTimeout)
Set the socket linger timeout. |
static void |
setSocketRecvBufferSize(int socketRecvBufferSize)
Set the inbound socket buffer size. |
static void |
setSocketSendBufferSize(int socketSendBufferSize)
Set the outbound socket buffer size. |
static void |
setSocketTcpNoDelay(boolean socketTcpNoDelay)
Enable or disable the Nagle's algorithm on the socket. |
static void |
setSoTimeout(int socketTimeout)
Set the socket connect timeout. |
static void |
setSSLCipherSuites(java.lang.String cipherSuites)
Set the CipherSuites. |
static void |
setSSLFIPSModeEnabled(boolean enable)
Set to true if SSL FIPS Mode needs to be enabled. |
static void |
setSSLKeystore(java.lang.String sslKeystore)
Set the SSL keystore. |
static void |
setSSLKeystoreType(java.lang.String sslKeystore)
Set the SSL keystore type. |
static void |
setSSLProvider(java.lang.String provider)
Set the SSL Provider. |
static void |
setSSLTruststore(java.lang.String sslTruststore)
Set the SSL Truststore. |
static void |
setSSLTruststoreType(java.lang.String sslTruststore)
Set the SSL Truststore type. |
static void |
setUsername(java.lang.String username)
Set the username. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONFIG_FILENAME
To override JMS provider-specific properties: 1. Create a properties file named wmjms.properties. 2. Add the properties that need to be overridden to that file. 3. Add the location of the file to the CLASSPATH.
The configuration file name is defined as "wmjms.properties".
public static final java.lang.String DEFAULT_BROKER_HOST
public static final int DEFAULT_BROKER_PORT
public static final java.lang.String SOCKET_CONNECT_TIMEOUT
This System property is defined as "com.webmethods.jms.socket.connectTimeout".
The default value is zero (infinite timeout).
public static final java.lang.String SOCKET_TIMEOUT
public static final java.lang.String SOCKET_SEND_BUFFER_SIZE
This System property is defined as "com.webmethods.jms.socket.sendBufferSize".
The default value is 65536 bytes.
public static final java.lang.String SOCKET_RECV_BUFFER_SIZE
This System property is defined as "com.webmethods.jms.socket.recvBufferSize".
The default value is 65536 bytes.
public static final java.lang.String SOCKET_TCP_NO_DELAY
This System property is defined as "com.webmethods.jms.socket.tcpNoDelay".
The default value is "true".
public static final java.lang.String SOCKET_LINGER
This System property is defined as "com.webmethods.jms.socket.linger".
The default value is "false".
public static final java.lang.String SOCKET_LINGER_TIMEOUT
This System property is defined as "com.webmethods.jms.socket.lingerTimeout".
The default value is 1 second.
public static final java.lang.String SOCKET_AUTO_FLUSH_SIZE
This System property is defined as "com.webmethods.jms.socket.autoFlushSize".
The default value is 32768 bytes.
SOCKET_AUTO_FLUSH_DELAY
,
Constant Field Valuespublic static final java.lang.String SOCKET_AUTO_FLUSH_DELAY
This System property is defined as "com.webmethods.jms.socket.autoFlushDelay".
The default value is 0 milliseconds (no delay).
SOCKET_AUTO_FLUSH_SIZE
,
Constant Field Valuespublic static final java.lang.String BROKER_TIMEOUT
This System property is defined as "com.webmethods.jms.brokerTimeout".
The default value is 60 seconds.
public static final java.lang.String BROKER_IDLE_SOCKET_TIMEOUT
This System property is defined as "com.webmethods.jms.brokerIdleSocketTimeout".
The default value is 60 seconds.
public static final java.lang.String BROKER_SOCKET_TIMEOUT_POST_CONNECTION_CLOSE
This System property is defined as "com.webmethods.jms.brokerTimeoutPostConnectionClose".
The default value is 30 seconds.
public static final java.lang.String KEEP_ALIVE_INTERVAL
This System property is defined as "com.webmethods.jms.keepAliveInterval".
The default value is 30 (disabled).
public static final java.lang.String KEEP_ALIVE_ATTEMPTS_BEFORE_DECLARING_CONNECTION_DROPPED
public static final java.lang.String RECONNECT_DELAY
This System property is defined as "com.webmethods.jms.reconnectDelay".
The default value is 15 seconds.
public static final java.lang.String RECONNECT_ATTEMPTS
It is recommended that reconnect attempts be disabled when running within an application server so that distributed transactions can be recovered properly. An application server will register a connection exception listener and should handle reconnection properly for distributed transactions.
This System property is defined as "com.webmethods.jms.reconnectAttempts".
The default value is 0 (disabled).
public static final java.lang.String BROKER_KEEP_ALIVE_INTERVAL
A value of 0 disables the sending of keep-alives from the Broker to the JMS client.
This System property is defined as "com.webmethods.jms.broker.keepAliveInterval".
The default value is 0 (disabled).
public static final java.lang.String BROKER_KEEP_ALIVE_TIMEOUT
A value of 0 is equivalent to an infinite timeout.
This System property is defined as "com.webmethods.jms.broker.keepAliveTimeout".
The default value is 0 (disabled).
public static final java.lang.String BROKER_KEEP_ALIVE_ATTEMPTS
This System property is defined as "com.webMethods.jms.broker.keepAliveAttempts".
The default value is 1 attempt.
public static final java.lang.String CONFIRM_DELIVERY
This System property is defined as "com.webmethods.jms.confirmDelivery".
The default value is "true".
public static final java.lang.String DISABLE_MESSAGE_DESTINATION
This System property is defined as "com.webmethods.jms.disableMessageDestination".
The default value is "false".
public static final java.lang.String DISABLE_MESSAGE_ID
MessageProducer.setDisableMessageID(boolean)
.
This System property is defined as "com.webmethods.jms.disableMessageID".
The default value is "false".
MessageProducer.setDisableMessageID(boolean)
,
Constant Field Valuespublic static final java.lang.String DISABLE_MESSAGE_TIMESTAMP
MessageProducer.setDisableMessageTimestamp(boolean)
.
This System property is defined as "com.webmethods.jms.disableMessageTimestamp".
The default value is "false".
MessageProducer.setDisableMessageTimestamp(boolean)
,
Constant Field Valuespublic static final java.lang.String MAX_RECEIVE
This System property is defined as "com.webmethods.jms.maxReceive".
The default value is 160.
WmMessageConsumer.setMaxReceive(int)
,
Constant Field Valuespublic static final java.lang.String DEFAULT_DELIVERY_MODE
This System property is defined as "com.webmethods.jms.defaultDeliveryMode".
The default value is Message.DEFAULT_DELIVERY_MODE
.
MessageProducer.setDeliveryMode(int)
,
Constant Field Valuespublic static final java.lang.String DEFAULT_PRIORITY
This System property is defined as "com.webmethods.jms.defaultPriority".
The default value is Message.DEFAULT_PRIORITY
.
MessageProducer.setPriority(int)
,
Constant Field Valuespublic static final java.lang.String DEFAULT_TIME_TO_LIVE
This System property is defined as "com.webmethods.jms.defaultTimeToLive".
The default value is Message.DEFAULT_TIME_TO_LIVE
.
MessageProducer.setTimeToLive(long)
,
Constant Field Valuespublic static final java.lang.String COMPRESSION_THRESHOLD
This System property is defined as "com.webmethods.jms.compressionThreshold".
The default value is -1 (no compression).
public static final java.lang.String AUTO_QUEUE_CREATE
This System property is defined as "com.webmethods.jms.autoQueueCreate".
The default value is "false".
public static final java.lang.String CLIENT_ID_SHARING
This System property is defined as "com.webmethods.jms.clientIDSharing".
The default value is "false".
public static final java.lang.String USERNAME
This System property is defined as "com.webmethods.jms.username".
The default value is null.
public static final java.lang.String PASSWORD
This System property is defined as "com.webmethods.jms.password".
The default value is null.
public static final java.lang.String SSL_KEYSTORE
This System property is defined as "com.webmethods.jms.ssl.keystore".
The default value is null.
public static final java.lang.String SSL_KEYSTORETYPE
This System property is defined as "com.webmethods.jms.ssl.keystoretype".
The default value is null.
public static final java.lang.String SSL_TRUSTSTORE
This System property is defined as "com.webmethods.jms.ssl.truststore".
The default value is null.
public static final java.lang.String SSL_TRUSTSTORETYPE
This System property is defined as "com.webmethods.jms.ssl.truststoretype".
The default value is null.
public static final java.lang.String SSL_PROVIDER
This System property is defined as "com.webmethods.jms.ssl.provider".
The default value is null.
public static final java.lang.String SSL_CIPHERSUITES
This System property is defined as "com.webmethods.jms.ssl.ciphersuites".
The default value is from the provider.
public static final java.lang.String SSL_FIPS_MODE
This System property is defined as "com.webmethods.jms.ssl.fipsmode".
The default value is false.
public static final java.lang.String MESSAGE_TRANSPORT_MAX_CACHE_SIZE
This System property is defined as "com.webmethods.jms.transport.maxCacheSize".
The default value is 2048.
public static final java.lang.String JMS_CLUSTER_1PC_TRANSACTION_LOG_FILE
This System property is defined as "com.webmethods.jms.cluster.log1PC".
The transaction logging is disabled if the value is not specified.
public static final java.lang.String SOCKET_KEEP_ALIVE_ENABLED
This System property is enabled - whether or not to have socket keep alive turned on.
The default value is false( no socket keep alive).
public static final boolean DEFAULT_SOCKET_KEEP_ALIVE_ENABLED
public static final boolean DEFAULT_SSL_FIPS_MODE_ENABLED
Method Detail |
---|
public static int getSocketConnectTimeout()
SOCKET_CONNECT_TIMEOUT
,
setSocketConnectTimeout(int)
public static void setSocketConnectTimeout(int socketConnectTimeout)
socketConnectTimeout
- the socket connect timeout in secondsSOCKET_CONNECT_TIMEOUT
,
getSocketConnectTimeout()
public static int getSoTimeout()
SOCKET_TIMEOUT
,
setSoTimeout(int)
public static void setSoTimeout(int socketTimeout)
socketTimeout
- the socket connect timeout in secondsSOCKET_TIMEOUT
,
getSoTimeout()
public static int getSocketSendBufferSize()
SOCKET_SEND_BUFFER_SIZE
,
setSocketSendBufferSize(int)
public static void setSocketSendBufferSize(int socketSendBufferSize)
socketSendBufferSize
- the outbound socket buffer sizeSOCKET_SEND_BUFFER_SIZE
,
getSocketSendBufferSize()
public static int getSocketRecvBufferSize()
SOCKET_RECV_BUFFER_SIZE
,
setSocketRecvBufferSize(int)
public static void setSocketRecvBufferSize(int socketRecvBufferSize)
socketRecvBufferSize
- the inbound socket buffer sizeSOCKET_RECV_BUFFER_SIZE
,
getSocketRecvBufferSize()
public static boolean getSocketTcpNoDelay()
true
if Nagle's algorithm is disabledSOCKET_TCP_NO_DELAY
,
setSocketTcpNoDelay(boolean)
public static void setSocketTcpNoDelay(boolean socketTcpNoDelay)
socketTcpNoDelay
- true
to disable Nagle's algorithmSOCKET_TCP_NO_DELAY
,
getSocketTcpNoDelay()
public static boolean getSocketLinger()
true
if socket linger is enabledSOCKET_LINGER
,
setSocketLinger(boolean)
public static void setSocketLinger(boolean socketLinger)
socketLinger
- true
to enable socket lingerSOCKET_LINGER
,
getSocketLinger()
public static int getSocketLingerTimeout()
SOCKET_LINGER_TIMEOUT
,
setSocketLingerTimeout(int)
public static void setSocketLingerTimeout(int socketLingerTimeout)
socketLingerTimeout
- the socket linger timeoutSOCKET_LINGER_TIMEOUT
,
getSocketLingerTimeout()
public static int getSocketAutoFlushSize()
SOCKET_AUTO_FLUSH_SIZE
,
setSocketAutoFlushSize(int)
public static void setSocketAutoFlushSize(int socketAutoFlushSize)
socketAutoFlushSize
- the socket auto-flush sizeSOCKET_AUTO_FLUSH_SIZE
,
getSocketAutoFlushSize()
public static long getSocketAutoFlushDelay()
SOCKET_AUTO_FLUSH_DELAY
,
setSocketAutoFlushDelay(int)
public static void setSocketAutoFlushDelay(int socketAutoFlushDelay)
socketAutoFlushDelay
- the socket auto-flush delaySOCKET_AUTO_FLUSH_DELAY
,
getSocketAutoFlushDelay()
public static int getBrokerTimeout()
BROKER_TIMEOUT
,
setBrokerTimeout(int)
public static void setBrokerTimeout(int brokerTimeout)
brokerTimeout
- the connection's Broker timeout in secondsBROKER_TIMEOUT
,
getBrokerTimeout()
public static int getBrokerTimeoutOnIdleSocket()
BROKER_IDLE_SOCKET_TIMEOUT
,
setBrokerTimeoutOnIdleSocket(int)
public static void setBrokerTimeoutOnIdleSocket(int brokerTimeoutOnIdleSocket)
brokerTimeoutOnIdleSocket
- the connection's timeout on idle socket in seconds.BROKER_IDLE_SOCKET_TIMEOUT
,
getBrokerTimeoutOnIdleSocket()
public static int getBrokerTimeoutPostConnectionClose()
BROKER_SOCKET_TIMEOUT_POST_CONNECTION_CLOSE
,
setBrokerTimeoutPostConnectionClose(int)
public static void setBrokerTimeoutPostConnectionClose(int brokerTimeoutPostConnectionClose)
BROKER_SOCKET_TIMEOUT_POST_CONNECTION_CLOSE
,
setBrokerTimeoutPostConnectionClose(int)
public static int getKeepAliveInterval()
KEEP_ALIVE_INTERVAL
,
setKeepAliveInterval(int)
public static void setKeepAliveInterval(int keepAliveInterval)
keepAliveInterval
- the connection's keep-alive interval in secondsKEEP_ALIVE_INTERVAL
,
getKeepAliveInterval()
public static int getKeepAliveAttemptsBeforeDeclaringConnectionDead()
public static void setKeepAliveAttemptsBeforeDeclaringConnectionDead(int keepAliveInterval)
keepAliveInterval
- the connection's keep-alive attempts.KEEP_ALIVE_ATTEMPTS_BEFORE_DECLARING_CONNECTION_DROPPED
,
getKeepAliveAttemptsBeforeDeclaringConnectionDead()
public static int getReconnectDelay()
RECONNECT_DELAY
,
setReconnectDelay(int)
public static void setReconnectDelay(int reconnectDelay)
reconnectDelay
- the connection's reconnect delay in secondsRECONNECT_DELAY
,
getReconnectDelay()
public static int getReconnectAttempts()
RECONNECT_ATTEMPTS
,
setReconnectAttempts(int)
public static void setReconnectAttempts(int reconnectAttempts)
reconnectAttempts
- the connection's reconnect attemptsRECONNECT_ATTEMPTS
,
getReconnectAttempts()
public static int getBrokerKeepAliveInterval()
BROKER_KEEP_ALIVE_INTERVAL
,
setBrokerKeepAliveInterval(int)
public static void setBrokerKeepAliveInterval(int brokerKeepAliveInterval)
brokerKeepAliveInterval
- the Broker's keep-alive interval in secondsBROKER_KEEP_ALIVE_INTERVAL
,
getBrokerKeepAliveInterval()
public static int getBrokerKeepAliveTimeout()
BROKER_KEEP_ALIVE_TIMEOUT
,
setBrokerKeepAliveTimeout(int)
public static void setBrokerKeepAliveTimeout(int brokerKeepAliveTimeout)
brokerKeepAliveTimeout
- the Broker's keep-alive response timeout in secondsBROKER_KEEP_ALIVE_TIMEOUT
,
getBrokerKeepAliveTimeout()
public static int getBrokerKeepAliveAttempts()
BROKER_KEEP_ALIVE_ATTEMPTS
,
setBrokerKeepAliveAttempts(int)
public static void setBrokerKeepAliveAttempts(int brokerKeepAliveAttempts)
brokerKeepAliveAttempts
- the Broker's keep-alive attemptsBROKER_KEEP_ALIVE_ATTEMPTS
,
getBrokerKeepAliveAttempts()
public static int getMaxReceive()
MAX_RECEIVE
,
setMaxReceive(int)
public static void setMaxReceive(int maxReceive)
maxReceive
- the maximum number of messages to be sent from the Broker to a consumer at one timeMAX_RECEIVE
,
getMaxReceive()
public static int getMessageTransportMaxCacheSize()
MESSAGE_TRANSPORT_MAX_CACHE_SIZE
,
setMessageTransportMaxCacheSize(int)
public static void setMessageTransportMaxCacheSize(int size)
size
- the maximum sizeMESSAGE_TRANSPORT_MAX_CACHE_SIZE
,
getMessageTransportMaxCacheSize()
public static boolean getConfirmDelivery()
CONFIRM_DELIVERY
,
setConfirmDelivery(boolean)
public static void setConfirmDelivery(boolean confirmDelivery)
confirmDelivery
- whether message delivery confirmation is enabledCONFIRM_DELIVERY
,
getConfirmDelivery()
public static boolean getDisableMessageDestination()
DISABLE_MESSAGE_DESTINATION
,
setDisableMessageDestination(boolean)
public static void setDisableMessageDestination(boolean disableMessageDestination)
disableMessageDestination
- whether message destinations are sentDISABLE_MESSAGE_DESTINATION
,
getDisableMessageDestination()
public static boolean getDisableMessageID()
DISABLE_MESSAGE_ID
,
setDisableMessageID(boolean)
public static void setDisableMessageID(boolean disableMessageID)
disableMessageID
- whether message IDs are sentDISABLE_MESSAGE_ID
,
getDisableMessageID()
public static boolean getDisableMessageTimestamp()
DISABLE_MESSAGE_TIMESTAMP
,
setDisableMessageTimestamp(boolean)
public static void setDisableMessageTimestamp(boolean disableMessageTimestamp)
disableMessageTimestamp
- whether timestamps are sent in messagesDISABLE_MESSAGE_TIMESTAMP
,
getDisableMessageTimestamp()
public static int getDefaultDeliveryMode()
DEFAULT_DELIVERY_MODE
,
setDefaultDeliveryMode(int)
public static void setDefaultDeliveryMode(int defaultDeliveryMode)
defaultDeliveryMode
- the message producer's default delivery modeDEFAULT_DELIVERY_MODE
,
getDefaultDeliveryMode()
public static int getDefaultPriority()
DEFAULT_PRIORITY
,
setDefaultPriority(int)
public static void setDefaultPriority(int defaultPriority)
defaultPriority
- the message producer's default priorityDEFAULT_PRIORITY
,
getDefaultPriority()
public static long getDefaultTimeToLive()
DEFAULT_TIME_TO_LIVE
,
setDefaultTimeToLive(int)
public static void setDefaultTimeToLive(int defaultTimeToLive)
defaultTimeToLive
- the message producer's default time to liveDEFAULT_TIME_TO_LIVE
,
getDefaultTimeToLive()
public static boolean getAutoQueueCreate()
true
if automatic queue creation is enabled.AUTO_QUEUE_CREATE
,
setAutoQueueCreate(boolean)
public static void setAutoQueueCreate(boolean autoQueueCreate)
autoQueueCreate
- true
to enable automatic queue creationAUTO_QUEUE_CREATE
,
getAutoQueueCreate()
public static boolean getClientIDSharing()
true
if client identifier sharing is enabled.CLIENT_ID_SHARING
,
setClientIDSharing(boolean)
public static void setClientIDSharing(boolean clientIDSharing)
clientIDSharing
- true
to enable client identifier sharingCLIENT_ID_SHARING
,
getClientIDSharing()
public static int getCompressionThreshold()
setCompressionThreshold(int)
,
WmMessageProducer.setCompressionThreshold(int)
,
WmMessageProducer.getCompressionThreshold()
public static void setCompressionThreshold(int compressionThreshold)
compressionThreshold
- The default compression threshold.getCompressionThreshold()
,
WmMessageProducer.setCompressionThreshold(int)
,
WmMessageProducer.getCompressionThreshold()
public static java.lang.String getSSLKeystore()
SSL_KEYSTORE
,
setSSLKeystore(java.lang.String)
public static void setSSLKeystore(java.lang.String sslKeystore)
sslKeystore
- the SSL keystoreSSL_KEYSTORE
,
getSSLKeystore()
public static void setSSLTruststore(java.lang.String sslTruststore)
sslTruststore
- the SSL TruststoreSSL_TRUSTSTORE
,
getSSLTruststore()
public static java.lang.String getSSLTruststore()
SSL_TRUSTSTORE
,
setSSLTruststore(java.lang.String)
public static void setSSLTruststoreType(java.lang.String sslTruststore)
sslTruststore
- the SSL Truststore typeSSL_TRUSTSTORETYPE
,
getSSLTruststoreType()
public static java.lang.String getSSLTruststoreType()
SSL_TRUSTSTORETYPE
,
setSSLTruststoreType(java.lang.String)
public static java.lang.String getSSLKeystoreType()
SSL_KEYSTORETYPE
,
setSSLKeystoreType(java.lang.String)
public static void setSSLKeystoreType(java.lang.String sslKeystore)
sslKeystore
- the SSL keystore typeSSL_KEYSTORETYPE
,
getSSLKeystoreType()
public static void setSSLProvider(java.lang.String provider)
provider
- the SSL ProviderSSL_PROVIDER
,
getSSLProvider()
public static java.lang.String getSSLProvider()
SSL_PROVIDER
,
setSSLProvider(java.lang.String)
public static void setSSLCipherSuites(java.lang.String cipherSuites)
cipherSuites
- the SSL CipherSuites list, separated by comma. ex: SSL_RSA_WITH_3DES_EDE_CBC_SHA,SSL_RSA_WITH_RC4_128_SHASSL_CIPHERSUITES
,
getSSLCipherSuites()
public static java.lang.String getSSLCipherSuites()
SSL_CIPHERSUITES
,
setSSLCipherSuites(java.lang.String)
public static void setSSLFIPSModeEnabled(boolean enable)
enable
- boolean.SSL_FIPS_MODE
,
isSSLFIPSModeEnabled()
public static boolean isSSLFIPSModeEnabled()
SSL_FIPS_MODE
,
setSSLFIPSModeEnabled(boolean)
public static java.lang.String getUsername()
USERNAME
,
setUsername(java.lang.String)
public static void setUsername(java.lang.String username)
username
- the usernameUSERNAME
,
getUsername()
public static java.lang.String getPassword()
PASSWORD
,
setPassword(java.lang.String)
public static void setPassword(java.lang.String password)
password
- the passwordPASSWORD
,
getPassword()
public static void setProperty(java.lang.String name, java.lang.String value)
name
- The name of the property to set.value
- The property value to set.public static void setProperty(java.lang.String name, int value)
name
- The name of the property to set.value
- The property value to set.public static void setProperty(java.lang.String name, boolean value)
name
- The name of the property to set.value
- The property value to set.public static java.lang.String getProperty(java.lang.String name)
name
- The name of the property to get.
public static java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
name
- The name of the property to get.defaultValue
- The value to return if the property is not found.
public static boolean getProperty(java.lang.String name, boolean defaultValue)
name
- The name of the property to get.defaultValue
- The value to return if the property is not found.
public static int getProperty(java.lang.String name, int defaultValue)
name
- The name of the property to get.defaultValue
- The value to return if the property is not found.
public static long getProperty(java.lang.String name, long defaultValue)
name
- The name of the property to get.defaultValue
- The value to return if the property is not found.
public static java.util.Properties getProperties()
public static void setJMSCluster1PCTxLogDestination(java.lang.String txLogdestination)
txLogdestination
- the file namepublic static boolean getSocketKeepAliveEnabled()
public static void setSocketKeepAliveEnabled(boolean enabled)
|
webMethods Broker API for JMS Version 9.5.1.0.171 091713 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |