@ProviderType
public interface SolConnectionFactory
extends javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.jms.TopicConnectionFactory, javax.naming.Referenceable
ConnectionFactory
.Modifier and Type | Method and Description |
---|---|
void |
fromProperties(java.util.Properties properties)
Sets the properties based on values in a
Properties instance. |
java.lang.Boolean |
getAllowDuplicateClientId()
This property specifies whether a duplicate client ID is allowed.
|
java.lang.String |
getAuthenticationScheme()
This property specifies the authentication scheme.
|
java.lang.Integer |
getBrowserTimeoutInMS()
This property specifies the maximum time in milliseconds for a
QueueBrowser Enumeration.hasMoreElements() to wait
for a message to arrive in the browser's local message buffer before returning. |
java.lang.Boolean |
getCallbackOnIOThread()
This property specifies whether to call MessageListeners directly from the IO thread.
|
java.lang.String |
getClientDescription()
This property is used to specify the application description on the appliance for the data connection.
|
java.lang.String |
getClientID()
This property is used to specify the client name on the appliance for the data connection.
|
java.lang.Integer |
getCompressionLevel()
This property is used to enable and specify the ZLIB compression level.
|
java.lang.Integer |
getConnectRetries()
This property is used to specify the total number of times to attempt
and retry a connection when establishing an initial connection
for a Session to a host router.
|
java.lang.Integer |
getConnectRetriesPerHost()
This property is used to specify the number of times to
retry data connection attempts to a single host before moving on to the next host
in the list.
|
java.lang.Integer |
getConnectTimeoutInMillis()
This property is used to specify the timeout in milliseconds on a data connection attempt.
|
java.lang.Boolean |
getDeliverToOne()
This property specifies whether sent messages are deliver to one.
|
java.lang.Boolean |
getDeliverToOneOverride()
This property specifies whether to override deliver to one settings.
|
java.lang.Integer |
getDeliveryMode()
This property specifies the delivery mode for sent messages.
|
java.lang.Boolean |
getDirectOptimized()
This property specifies whether to optimize the API for direct transport.
|
java.lang.Boolean |
getDirectTransport()
This property specifies whether to use direct transport for non-persistent messages.
|
java.lang.Boolean |
getDmqEligible()
This property specifies whether sent messages are eligible for the dead message queue.
|
java.lang.Boolean |
getDynamicDurables()
This property is used to indicate whether durable topic endpoints or queues are to be
created on the appliance when the corresponding Session.createDurableSubscriber() or
Session.createQueue() is called.
|
java.lang.Object |
getEffectiveProperty(java.lang.String name)
Gets a property's value given its name.
|
java.lang.Boolean |
getElidingEligible()
This property specifies whether sent messages are marked as eligible for eliding.
|
java.util.Hashtable<?,?> |
getEnvironment()
This method gets the environment that the ConnectionFactory may have.
|
java.lang.Boolean |
getGenerateSenderID()
This property is used to Indicates whether the client name should be
included in the SenderID message header parameter.
|
java.lang.String |
getHost()
This property is the hostname / IP address of the appliance.
|
java.lang.Boolean |
getJMSXUserIDEnabled()
This property specifies whether JMSXUserID property should be set.
|
java.lang.Integer |
getKeepAliveCountMax()
This property is used to specify the allowed number of consecutive keep-alive
messages for which no response is received before the connection is closed by
the API.
|
java.lang.Integer |
getKeepAliveIntervalInMillis()
This property is used to specify the interval between keep alives in milliseconds.
|
java.lang.Boolean |
getKeepAlives()
This property is used to enable/disable keep alives.
|
java.lang.Boolean |
getKRBMutualAuthentication()
This property is used to indicate that mutual authentication is
to be used when Kerberos is enabled.
|
java.lang.String |
getKRBServiceName()
This property is used to specify the ServiceName portion of the Service Principal Name (SPN)
that has a format of ServiceName/ApplianceName@REALM.
|
java.lang.Boolean |
getLargeMessaging()
This property is used to enable/disable publish/receive large AD messages.
|
java.lang.Integer |
getLargeMessagingConsumeTimeoutInMillis() |
java.lang.String |
getLargeMessagingIncompletePolicy() |
java.lang.Integer |
getLargeMessagingMaximumSize() |
java.lang.Integer |
getLargeMessagingSegmentSize() |
java.lang.String |
getPassword()
This property is used to specify the password to connect to the
appliance with.
|
java.lang.Integer |
getPort()
This property is used to specify the port to use for the data connection.
|
java.lang.Object |
getProperty(java.lang.String name)
Gets the property value given its name.
|
java.util.Set<java.lang.String> |
getPropertyNames()
Gets the property names for all the properties.
|
java.lang.Integer |
getReadTimeoutInMillis()
This property is used to specify the timeout in milliseconds for
reading a reply from the appliance.
|
java.lang.Integer |
getReceiveAdAckThreshold()
This property specifies the threshold for sending an acknowledgement to the appliance.
|
java.lang.Integer |
getReceiveADAckTimerInMillis()
This property specifies the duration of the acknowledgement timer.
|
java.lang.Integer |
getReceiveADWindowSize()
This property specifies the size of the sliding acknowledgement window.
|
java.lang.Integer |
getReceiveBufferSize()
This property is used to configure the socket’s receive buffer size in bytes.
|
java.lang.Integer |
getReceiveReconnectRetries()
Gets how much time (in ms) to wait between each attempt to reconnect to an endpoint.
|
java.lang.Integer |
getReceiveReconnectRetryWaitInMillis()
Gets how much time (in ms) to wait between each attempt to reconnect to an endpoint.
|
java.lang.Integer |
getReconnectRetries()
This property is used to specify the number of times to attempt a reconnect
once the initial data connection to the appliance has been lost.
|
java.lang.Integer |
getReconnectRetryWaitInMillis()
This property is used to specify the amount of time to wait in milliseconds
between reconnect attempts.
|
java.lang.Boolean |
getRespectTTL()
This property is used to indicate whether dynamically created durable topic
endpoints or queues are set to respect time to live (see Dynamic Durables).
|
java.lang.Integer |
getSendADAckTimerInMillis()
This property specifies the duration of the acknowledgement timer in milliseconds.
|
java.lang.Integer |
getSendADMaxResends()
Deprecated.
|
java.lang.Integer |
getSendADWindowSize()
This property specifies the size of the sliding acknowledgement window for
non-persistent messages.
|
java.lang.Integer |
getSendBufferSize()
This property is used to specify the socket’s send buffer size in bytes.
|
java.lang.String |
getSSLCipherSuites()
This property specifies a comma separated list of the
cipher suites to enable in order of preference.
|
java.lang.String |
getSSLConnectionDowngradeTo()
This property specifies a transport protocol that SSL connection will
be downgraded to after client authentication.
|
java.lang.String |
getSSLExcludedProtocols()
This property is used to specify a comma separated list of encryption
protocol(s) to exclude from use.
|
java.lang.String |
getSSLKeyStore()
This property specifies the key store to use in URL or path format.
|
java.lang.String |
getSSLKeyStoreFormat()
This property specifies the format of the given key store.
|
java.lang.String |
getSSLKeyStoreNormalizedFormat()
This property specifies the internal normalized format of the given key store.
|
java.lang.String |
getSSLKeyStorePassword()
This property specifies the key store password to use.
|
java.lang.String |
getSSLPrivateKeyAlias()
This property specifies which private key in the key store is to be used
for the client certificate authentication.
|
java.lang.String |
getSSLPrivateKeyPassword()
This property specifies the password used to decipher the client
certificate private key from the key store.
|
java.lang.String |
getSSLProtocol()
This property is used to specify a comma separated list of encryption
protocol(s) to use.
|
java.lang.String |
getSSLTrustedCommonNameList()
This property specifies the list of acceptable common
names for matching in server certificates.
|
java.lang.String |
getSSLTrustStore()
This property specifies the trust store to use in URL or path format.
|
java.lang.String |
getSSLTrustStoreFormat()
This property specifies the format of the given trust store.
|
java.lang.String |
getSSLTrustStorePassword()
This property specifies the trust store password to use.
|
java.lang.Boolean |
getSSLValidateCertificate()
This property is used to indicate that the API should
validate server certificates with certificates in the
trust store.
|
java.lang.Boolean |
getSSLValidateCertificateDate()
This property is used to indicate that the session
connection should fail when an expired certificate or
a certificate not yet in effect is received.
|
java.lang.Boolean |
getSSLValidateCertificateHost()
This method is used to get the value of the SSLValidateCertificateHost property.
|
java.lang.Integer |
getSubscriberLocalPriority()
This property specifies the priority that a client’s subscriptions have
for receiving Deliver-To-One messages published on the Solace appliance
that the client is directly connected to.
|
java.lang.Integer |
getSubscriberNetworkPriority()
This property specifies the priority that a client’s subscriptions have
for receiving Deliver-To-One messages published by other Solace appliances
in the Solace Messaging Platform.
|
java.lang.Boolean |
getTcpNoDelay()
This property is used to specify whether to set the TCP_NODELAY option.
|
java.lang.String |
getUnknownPublisherFlowAction()
This property specifies
|
java.lang.Boolean |
getUseDefaultContext()
This property is used to indicate whether to use a new context or reuse
the default context for new JMS connections.
|
java.lang.String |
getUsername()
This property is used to specify the username to connect to the appliance with.
|
java.lang.String |
getVPN()
This property is used to specify the VPN to use when connecting to the appliance.
|
java.lang.Boolean |
getXA()
This property specified whether this is an XA Connection Factory.
|
java.lang.Boolean |
getXmlPayload()
This property specifies whether sent text messages have an XML payload.
|
void |
setAuthenticationScheme(java.lang.String scheme)
This property specifies the authentication scheme.
|
void |
setBrowserTimeoutInMS(java.lang.Integer timeout)
This property specifies the maximum time in milliseconds for a
QueueBrowser Enumeration.hasMoreElements() to wait
for a message to arrive in the browser's local message buffer before returning. |
void |
setCallbackOnIOThread(java.lang.Boolean callbackOnIOThread)
This property specifies whether to call MessageListeners directly from the IO thread.
|
void |
setClientDescription(java.lang.String clientDescription)
This property is used to specify the application description on the appliance for the data connection.
|
void |
setClientID(java.lang.String clientID)
This property is used to specify the client name on the appliance for the data connection.
|
void |
setCompressionLevel(java.lang.Integer compressionLevel)
This property is used to enable and specify the ZLIB compression level.
|
void |
setConnectRetries(java.lang.Integer connectRetries)
This property is used to specify the total number of times to attempt
and retry a connection when establishing an initial connection
for a Session to a host router.
|
void |
setConnectRetriesPerHost(java.lang.Integer connectRetriesPerHost)
This property is used to specify the number of times to
retry data connection attempts to a single host before moving on to the next host
in the list.
|
void |
setConnectTimeoutInMillis(java.lang.Integer connectTimeoutInMillis)
This property is used to specify the timeout in milliseconds on a data connection attempt.
|
void |
setDeliverToOne(java.lang.Boolean deliverToOne)
This property specifies whether sent messages are deliver to one.
|
void |
setDeliverToOneOverride(java.lang.Boolean deliverToOneOverride)
This property specifies whether to override deliver to one settings.
|
void |
setDeliveryMode(java.lang.Integer deliveryMode)
This property specifies the delivery mode for sent messages.
|
void |
setDirectOptimized(java.lang.Boolean directOptimized)
This property specifies whether to optimize the API for direct transport.
|
void |
setDirectTransport(java.lang.Boolean directTransport)
This property specifies whether to use direct transport for non-persistent messages.
|
void |
setDmqEligible(java.lang.Boolean dmqEligible)
This property specifies whether sent messages are eligible for the dead message queue.
|
void |
setDynamicDurables(java.lang.Boolean dynamicDurables)
This property is used to indicate whether durable topic endpoints or queues are to be
created on the appliance when the corresponding Session.createDurableSubscriber() or
Session.createQueue() is called.
|
void |
setElidingEligible(java.lang.Boolean elidingEligible)
This property specifies whether sent messages are marked as eligible for eliding.
|
void |
setGenerateSenderID(java.lang.Boolean generateSenderId)
This property is used to Indicates whether the client name should be
included in the SenderID message header parameter.
|
void |
setHost(java.lang.String host)
This property is the hostname / IP address of the appliance.
|
void |
setKeepAliveCountMax(java.lang.Integer keepAliveCountMax)
This property is used to specify the allowed number of consecutive keep-alive
messages for which no response is received before the connection is closed by
the API.
|
void |
setKeepAliveIntervalInMillis(java.lang.Integer keepAliveIntervalInMillis)
This property is used to specify the interval between keep alives in milliseconds.
|
void |
setKeepAlives(java.lang.Boolean keepAlives)
This property is used to enable/disable keep alives.
|
void |
setKRBMutualAuthentication(java.lang.Boolean mutualAuth)
This property is used to indicate that mutual authentication is
to be used when Kerberos is enabled.
|
void |
setKRBServiceName(java.lang.String serviceName)
This property is used to specify the ServiceName portion of the Service Principal Name (SPN)
that has a format of ServiceName/ApplianceName@REALM.
|
void |
setLargeMessaging(java.lang.Boolean largeMessaging)
This property is used to enable/disable publish/receive large AD messages..
|
void |
setLargeMessagingConsumeTimeoutInMillis(java.lang.Integer consumeTimeoutInMillis) |
void |
setLargeMessagingIncompletePolicy(java.lang.String incompletePolicy) |
void |
setLargeMessagingMaximumSize(java.lang.Integer maxSize) |
void |
setLargeMessagingSegmentSize(java.lang.Integer segmentSize) |
void |
setPassword(java.lang.String password)
This property is used to specify the password to connect to the
appliance with.
|
void |
setPort(java.lang.Integer port)
This property is used to specify the port to use for the data connection.
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
Sets a property's value given its name.
|
void |
setReadTimeoutInMillis(java.lang.Integer readTimeoutInMillis)
This property is used to specify the timeout in milliseconds for
reading a reply from the appliance.
|
void |
setReceiveAdAckThreshold(java.lang.Integer receiveAdAckThreshold)
This property specifies the threshold for sending an acknowledgement to the appliance.
|
void |
setReceiveADAckTimerInMillis(java.lang.Integer receiveADAckTimerInMillis)
This property specifies the duration of the acknowledgement timer.
|
void |
setReceiveADWindowSize(java.lang.Integer receiveADWindowSize)
This property specifies the size of the sliding acknowledgement window.
|
void |
setReceiveBufferSize(java.lang.Integer receiveBufferSize)
This property is used to configure the socket’s receive buffer size in bytes.
|
void |
setReceiveReconnectRetries(java.lang.Integer reconnectRetries)
This property specifies the number of times to attempt to reconnect to an endpoint after the initial bound flow goes down.
|
void |
setReceiveReconnectRetryWaitInMillis(java.lang.Integer reconnectRetryWaitInMillis)
This property specifies how much time (in ms) to wait between each attempt to reconnect to an endpoint.
|
void |
setReconnectRetries(java.lang.Integer reconnectRetries)
This property is used to specify the number of times to attempt a reconnect
once the initial data connection to the appliance has been lost.
|
void |
setReconnectRetryWaitInMillis(java.lang.Integer reconnectRetryWaitInMillis)
This property is used to specify the amount of time to wait in milliseconds
between reconnect attempts.
|
void |
setRespectTTL(java.lang.Boolean respectTTL)
This property is used to indicate whether dynamically created durable topic
endpoints or queues are set to respect time to live (see Dynamic Durables).
|
void |
setSendADAckTimerInMillis(java.lang.Integer sendADAckTimerInMillis)
This property specifies the duration of the acknowledgement timer in milliseconds.
|
void |
setSendADMaxResends(java.lang.Integer sendADMaxResends)
Deprecated.
|
void |
setSendADWindowSize(java.lang.Integer sendADWindowSize)
This property specifies the size of the sliding acknowledgement window for
non-persistent and transacted messages.
|
void |
setSendBufferSize(java.lang.Integer sendBufferSize)
This property is used to specify the socket’s send buffer size in bytes.
|
void |
setSSLCipherSuites(java.lang.String cipherSuites)
This property specifies a comma separated list of the
cipher suites to enable in order of preference.
|
void |
setSSLConnectionDowngradeTo(java.lang.String proto)
This property specifies a transport protocol that SSL connection will
be downgraded to after client authentication.
|
void |
setSSLExcludedProtocols(java.lang.String protocols)
This property is used to specify a comma separated list of encryption
protocol(s) to exclude from use.
|
void |
setSSLKeyStore(java.lang.String keystore)
This property specifies the key store to use in URL or path format.
|
void |
setSSLKeyStoreFormat(java.lang.String format)
This property specifies the format of the given key store.
|
void |
setSSLKeyStoreNormalizedFormat(java.lang.String format)
This property specifies the internal normalized format of the given key store.
|
void |
setSSLKeyStorePassword(java.lang.String password)
This property specifies the key store password to use.
|
void |
setSSLPrivateKeyAlias(java.lang.String alias)
This property specifies which private key in the key store is to be used
for the client certificate authentication.
|
void |
setSSLPrivateKeyPassword(java.lang.String password)
This property specifies the password used to decipher the client
certificate private key from the key store.
|
void |
setSSLProtocol(java.lang.String protocol)
This property is used to specify a comma separated list of encryption
protocol(s) to use.
|
void |
setSSLTrustedCommonNameList(java.lang.String commonNames)
This property specifies the list of acceptable common
names for matching in server certificates.
|
void |
setSSLTrustStore(java.lang.String truststore)
This property specifies the trust store to use in URL or path format.
|
void |
setSSLTrustStoreFormat(java.lang.String format)
This property specifies the format of the given trust store.
|
void |
setSSLTrustStorePassword(java.lang.String password)
This property specifies the trust store password to use.
|
void |
setSSLValidateCertificate(java.lang.Boolean validate)
This property is used to indicate that the API should validate server
certificates with certificates in the trust store.
|
void |
setSSLValidateCertificateDate(java.lang.Boolean validateDate)
This property is used to indicate that the session
connection should fail when an expired certificate or
a certificate not yet in effect is received.
|
void |
setSSLValidateCertificateHost(java.lang.Boolean validate)
Boolean property to indicate if the session connection should fail when a certificate with an
invalid host is received.
|
void |
setSubscriberLocalPriority(java.lang.Integer subscriberLocalPriority)
This property specifies the priority that a client’s subscriptions have
for receiving Deliver-To-One messages published on the Solace appliance
that the client is directly connected to.
|
void |
setSubscriberNetworkPriority(java.lang.Integer subscriberNetworkPriority)
This property specifies the priority that a client’s subscriptions have
for receiving Deliver-To-One messages published by other Solace appliances
in the Solace Messaging Platform.
|
void |
setTcpNoDelay(java.lang.Boolean tcpNoDelay)
This property is used to specify whether to set the TCP_NODELAY option.
|
void |
setUnknownPublisherFlowAction(java.lang.String action)
This property specifies
|
void |
setUseDefaultContext(java.lang.Boolean useDefaultContext)
This property is used to indicate whether to use a new context or reuse
the default context for new JMS connections.
|
void |
setUsername(java.lang.String username)
This property is used to specify the username to connect to the appliance with.
|
void |
setVPN(java.lang.String vpn)
This property is used to specify the VPN to use when connecting to the appliance.
|
void |
setXmlPayload(java.lang.Boolean xmlPayload)
This property specifies whether sent text messages have an XML payload.
|
java.lang.String |
toEffectiveString()
Returns a string representation of all the property values as if the
method
getEffectiveProperty(String) was used to retrieve them. |
java.util.Properties |
toProperties()
Gets the properties in a
Properties instance. |
createQueueConnection, createQueueConnection
createTopicConnection, createTopicConnection
java.lang.String getAuthenticationScheme()
Values are one of
SupportedProperty.AUTHENTICATION_SCHEME_BASIC
(username/password based authentication)SupportedProperty.AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE
(Client Certificate based authentication)SupportedProperty.AUTHENTICATION_SCHEME_GSS_KRB
(Kerberos based authentication)SupportedProperty.AUTHENTICATION_SCHEME_OAUTH2
(OAuth 2.0 based authentication)void setAuthenticationScheme(java.lang.String scheme)
Values are one of
SupportedProperty.AUTHENTICATION_SCHEME_BASIC
(username/password authentication) SupportedProperty.AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE
(Client Certificate based authentication)SupportedProperty.AUTHENTICATION_SCHEME_GSS_KRB
(Kerberos based authentication)SupportedProperty.AUTHENTICATION_SCHEME_OAUTH2
(OAuth 2.0 based authentication)scheme
- The authentication schemejava.lang.Integer getBrowserTimeoutInMS()
QueueBrowser
Enumeration.hasMoreElements()
to wait
for a message to arrive in the browser's local message buffer before returning. If there is already a message
waiting Enumeration.hasMoreElements()
returns immediately. A value of 0 means wait forever (
Enumeration.hasMoreElements()
will return false only on closing the browser). A value < 0 will return immediately.
Default: -1 (return immediately)
void setBrowserTimeoutInMS(java.lang.Integer timeout)
QueueBrowser
Enumeration.hasMoreElements()
to wait
for a message to arrive in the browser's local message buffer before returning. If there is already a message
waiting Enumeration.hasMoreElements()
returns immediately. A value of 0 means wait forever (
Enumeration.hasMoreElements()
will return false only on closing the browser). A value < 0 will return immediately.
Default: -1 (return immediately)
timeout
- the BrowserTimeoutInMS property value, null to unset.java.lang.Boolean getCallbackOnIOThread()
Default: false
void setCallbackOnIOThread(java.lang.Boolean callbackOnIOThread)
Default: false
callbackOnIOThread
- the CallbackOnIOThread property value, null to unset.java.lang.String getClientDescription()
Format: Must be a maximum of 254 ASCII characters.
Default: “”
void setClientDescription(java.lang.String clientDescription)
Format: Must be a maximum of 254 ASCII characters.
Default: “”
clientDescription
- the ClientDescription property value, null to unset.java.lang.String getClientID()
Format: Must be a valid topic name and a maximum of 160 bytes when encoded in UTF-8.
Default: a generated client ID
void setClientID(java.lang.String clientID)
Format: Must be a valid topic name and a maximum of 160 bytes when encoded in UTF-8.
Default: a generated client ID
clientID
- the ClientID property value, null to unset.java.lang.Integer getCompressionLevel()
Format: Must be a value [-1..9]. -1 means use the JNDI connection’s compression level. O disables compression. 1-9 sets the ZLIB compression level.
Default: -1 (use JNDI connection’s compression level, 0 if no JNDI connection)
void setCompressionLevel(java.lang.Integer compressionLevel)
Format: Must be a value [-1..9]. -1 means use the JNDI connection’s compression level. O disables compression. 1-9 sets the ZLIB compression level.
Default: -1 (use JNDI connection’s compression level, 0 if no JNDI connection)
compressionLevel
- the CompressionLevel property value, null to unset.java.lang.Integer getConnectRetries()
Format: Valid values are [-1.. 2147483647]. -1 means retry forever.
Default: 0 (don’t retry)
void setConnectRetries(java.lang.Integer connectRetries)
Format: Valid values are [-1.. 2147483647]. -1 means retry forever.
Default: 0 (don’t retry)
connectRetries
- the ConnectRetries property value, null to unset.java.lang.Integer getConnectRetriesPerHost()
Format: Valid values are [-1.. 2147483647]. -1 means retry forever.
Default: 0 (don’t retry)
void setConnectRetriesPerHost(java.lang.Integer connectRetriesPerHost)
Format: Valid values are [-1.. 2147483647]. -1 means retry forever.
Default: 0 (don’t retry)
connectRetriesPerHost
- the ConnectRetriesPerHost property value, null to unset.java.lang.Integer getConnectTimeoutInMillis()
Format: In milliseconds. Valid values are [0..2147483647]. 0 means wait forever.
Default: The default value is 30000 (30 seconds)
void setConnectTimeoutInMillis(java.lang.Integer connectTimeoutInMillis)
Format: In milliseconds. Valid values are [0..2147483647]. 0 means wait forever.
Default: The default value is 30000 (30 seconds)
connectTimeoutInMillis
- the ConnectTimeoutInMillis property value, null to unset.java.lang.Integer getDeliveryMode()
Format: Valid values are [DeliveryMode.NON_PERSISTENT
| DeliveryMode.PERSISTENT
]
Default: DeliveryMode.PERSISTENT
void setDeliveryMode(java.lang.Integer deliveryMode)
Format: Valid values are [DeliveryMode.NON_PERSISTENT
| DeliveryMode.PERSISTENT
]
Default: DeliveryMode.PERSISTENT
deliveryMode
- the DeliveryMode property value, null to unset.java.lang.Boolean getDeliverToOne()
Default: false
void setDeliverToOne(java.lang.Boolean deliverToOne)
Default: false
deliverToOne
- the DeliverToOne property value, null to unset.java.lang.Boolean getDeliverToOneOverride()
Default: true.
void setDeliverToOneOverride(java.lang.Boolean deliverToOneOverride)
Default: true.
deliverToOneOverride
- the DeliverToOneOverride property value, null to unset.java.lang.Boolean getDirectOptimized()
Default: false.
void setDirectOptimized(java.lang.Boolean directOptimized)
Default: false.
directOptimized
- the DirectOptimized property value, null to unset.java.lang.Boolean getDirectTransport()
Default: true.
void setDirectTransport(java.lang.Boolean directTransport)
Default: true.
directTransport
- the DirectTransport property value, null to unset.java.lang.Boolean getJMSXUserIDEnabled()
Default: false.
java.lang.Boolean getAllowDuplicateClientId()
Default: false.
java.lang.Boolean getDmqEligible()
Default: false
void setDmqEligible(java.lang.Boolean dmqEligible)
Default: false
dmqEligible
- the DmqEligible property value, null to unset.java.lang.Boolean getDynamicDurables()
Default: false
void setDynamicDurables(java.lang.Boolean dynamicDurables)
Default: false
dynamicDurables
- the DynamicDurables property value, null to unset.java.lang.Boolean getElidingEligible()
Default: false
void setElidingEligible(java.lang.Boolean elidingEligible)
Default: false
elidingEligible
- the ElidingEligible property value, null to unset.java.util.Hashtable<?,?> getEnvironment()
java.lang.Boolean getGenerateSenderID()
void setGenerateSenderID(java.lang.Boolean generateSenderId)
generateSenderId
- True to generate sender id, null to unset.java.lang.Integer getKeepAliveCountMax()
Format: Valid values are [3.. 2147483647].
Default: 3
void setKeepAliveCountMax(java.lang.Integer keepAliveCountMax)
Format: Valid values are [3.. 2147483647].
Default: 3
keepAliveCountMax
- the KeepAliveCountMax property value, null to unset.java.lang.Integer getKeepAliveIntervalInMillis()
Format: In milliseconds. Valid values are [0, 50]. 0 disables the keep alives.
Default: 3000 (3 seconds)
void setKeepAliveIntervalInMillis(java.lang.Integer keepAliveIntervalInMillis)
Format: In milliseconds. Valid values are [0, 50]. 0 disables the keep alives.
Default: 3000 (3 seconds)
keepAliveIntervalInMillis
- the KeepAliveIntervalInMillis property value, null to unset.java.lang.Boolean getKeepAlives()
Default: true (enabled)
void setKeepAlives(java.lang.Boolean keepAlives)
Default: true (enabled)
keepAlives
- the KeepAlives property value, null to unset.java.lang.Boolean getLargeMessaging()
Default: false (disabled)
void setLargeMessaging(java.lang.Boolean largeMessaging)
Default: false (disabled)
largeMessaging
- the LargeMessaging property value, null if not set.java.lang.Integer getLargeMessagingSegmentSize()
void setLargeMessagingSegmentSize(java.lang.Integer segmentSize)
segmentSize
- parameterjava.lang.Integer getLargeMessagingMaximumSize()
void setLargeMessagingMaximumSize(java.lang.Integer maxSize)
maxSize
- parameterjava.lang.Integer getLargeMessagingConsumeTimeoutInMillis()
void setLargeMessagingConsumeTimeoutInMillis(java.lang.Integer consumeTimeoutInMillis)
consumeTimeoutInMillis
- parameterjava.lang.String getLargeMessagingIncompletePolicy()
void setLargeMessagingIncompletePolicy(java.lang.String incompletePolicy)
incompletePolicy
- parameterjava.lang.Boolean getKRBMutualAuthentication()
Default: true (enabled)
#setAuthenticationScheme(string)
void setKRBMutualAuthentication(java.lang.Boolean mutualAuth)
Default: true (enabled)
mutualAuth
- Kerberos mutual authentication property value, null to unset.#setAuthenticationScheme
java.lang.String getKRBServiceName()
Default: "solace"
void setKRBServiceName(java.lang.String serviceName)
Default: "solace"
serviceName
- Kerberos service name, null to unset.java.lang.String getHost()
void setHost(java.lang.String host)
Usage A host entry has the following form:
[Protocol:]Host[:Port]
Protocol is the protocol used for the transport channel. The valid values are:
Host is the IP address (or host name) to connect to for a connection. Port is the port to connect to for a connection. A value is only required when using a port other than the automatically assigned default port number. The default port for smf is 55555 when compression is not in use, or 55003 when compression is in use. The default port for SSL is 55443.
"192.168.160.128,192.168.160.129:50005"
When a connection is attempted, the API first attempts to connect to 192.168.160.128. If that connection fails for any reason, it attempts to connect to 192.168.160.129:50005. This process is repeated until all other entries in the host list are attempted.
After each entry has been attempted, and if all fail, the channel properties ConnectRetries, ReconnectRetries, and ReconnectRetryWaitInMillis determine the behavior of the API. If ConnectRetries is non-zero, the API waits for the amount of time set for ReconnectRetryWaitInMillis, then starts its connection attempts again from the beginning of the list. When traversing the list, each entry is attempted the number of times set for the ConnectRetriesPerHost property + 1.
If an established session to any host in the list fails, when ReconnectRetries is non-zero, the API automatically attempts to reconnect, starting at the beginning of the list.
For typical Guaranteed Messaging scenarios, redundancy is achieved by using an active/standby pair of appliances sharing the same IP address, so only one host entry is required in the session HOST property. In this situation, once-and-only-once delivery is guaranteed.
host
- the Host property value, null to unset.java.lang.String getPassword()
Format: The maximum length is 128 characters.
void setPassword(java.lang.String password)
Format: The maximum length is 128 characters.
password
- the Password property value, null to unset.java.lang.Integer getPort()
Format: Valid values are [-1..65535]. -1 means use the same port as specified for the JNDI connection.
Default: -1 (use JNDI connection port, or the default appliance port if no JNDI connection)
void setPort(java.lang.Integer port)
Format: Valid values are [-1..65535]. -1 means use the same port as specified for the JNDI connection.
Default: -1 (use JNDI connection port, or the default appliance port if no JNDI connection)
port
- the Port property value, null to unset.java.lang.Integer getReadTimeoutInMillis()
Format: Valid values are [1..2147483647].
Default: 10000 (10 seconds)
void setReadTimeoutInMillis(java.lang.Integer readTimeoutInMillis)
Format: Valid values are [1..2147483647].
Default: 10000 (10 seconds)
readTimeoutInMillis
- the ReadTimeoutInMillis property value, null to unset.java.lang.Integer getReceiveAdAckThreshold()
Format: Valid values are [1..75]
Default: 60
void setReceiveAdAckThreshold(java.lang.Integer receiveAdAckThreshold)
Format: Valid values are [1..75]
Default: 60
receiveAdAckThreshold
- the ReceiveAdAckThreshold property value, null to unset.java.lang.Integer getReceiveADAckTimerInMillis()
Format: In milliseconds. Valid values are [20..1500]
Default: 1000 (1 second)
void setReceiveADAckTimerInMillis(java.lang.Integer receiveADAckTimerInMillis)
Format: In milliseconds. Valid values are [20..1500]
Default: 1000 (1 second)
receiveADAckTimerInMillis
- the ReceiveADAckTimerInMillis property value, null to unset.java.lang.Integer getReceiveADWindowSize()
Format: Valid values are [1..255]
Default: 18
void setReceiveADWindowSize(java.lang.Integer receiveADWindowSize)
Format: Valid values are [1..255]
Default: 18
receiveADWindowSize
- the ReceiveADWindowSize property value, null to unset.java.lang.Integer getReceiveBufferSize()
Format: Valid values are greater than 0.
Default: 65536
void setReceiveBufferSize(java.lang.Integer receiveBufferSize)
Format: Valid values are greater than 0.
Default: 65536
receiveBufferSize
- the ReceiveBufferSize property value, null to unset.java.lang.Integer getReceiveReconnectRetries()
void setReceiveReconnectRetries(java.lang.Integer reconnectRetries)
java.lang.Integer getReceiveReconnectRetryWaitInMillis()
void setReceiveReconnectRetryWaitInMillis(java.lang.Integer reconnectRetryWaitInMillis)
java.lang.Integer getReconnectRetries()
Format: Valid values are [-1..2147483647]. -1 means retry forever.
Default: 3 retries
void setReconnectRetries(java.lang.Integer reconnectRetries)
Format: Valid values are [-1..2147483647]. -1 means retry forever.
Default: 3 retries
reconnectRetries
- the ReconnectRetries property value, null to unset.java.lang.Integer getReconnectRetryWaitInMillis()
Format: Valid values are [0..60000]. 0 means don’t wait.
Default: 3000 (3 seconds)
void setReconnectRetryWaitInMillis(java.lang.Integer reconnectRetryWaitInMillis)
Format: Valid values are [0..60000]. 0 means don’t wait.
Default: 3000 (3 seconds)
reconnectRetryWaitInMillis
- the ReconnectRetryWaitInMillis property value, null to unset.java.lang.Boolean getRespectTTL()
Default: true
void setRespectTTL(java.lang.Boolean respectTTL)
Default: true
respectTTL
- the RespectTTL property value, null to unset.java.lang.Integer getSendADAckTimerInMillis()
Format: In milliseconds. Valid values are [20..60000]
Default: 2000 (2 seconds)
void setSendADAckTimerInMillis(java.lang.Integer sendADAckTimerInMillis)
Format: In milliseconds. Valid values are [20..60000]
Default: 2000 (2 seconds)
sendADAckTimerInMillis
- the SendADAckTimerInMillis property value, null to unset.@Deprecated java.lang.Integer getSendADMaxResends()
@Deprecated void setSendADMaxResends(java.lang.Integer sendADMaxResends)
java.lang.Integer getSendADWindowSize()
Format: Valid values are [1..255]
Default: 255
void setSendADWindowSize(java.lang.Integer sendADWindowSize)
Format: Valid values are [1..255]
Default: 255
sendADWindowSize
- the SendADWindowSize property value, null to unset.java.lang.Integer getSendBufferSize()
Format: Valid values are greater than 0.
Default: 65536
void setSendBufferSize(java.lang.Integer sendBufferSize)
Format: Valid values are greater than 0.
Default: 65536
sendBufferSize
- the SendBufferSize property value, null to unset.java.lang.String getSSLExcludedProtocols()
Format: Allowed values are “sslv3”, “tlsv1”, “tlsv1.1”, “tlsv1.2”.
Default: “” Note that TLSv1.1 and TLSv1.2 are supported starting with Java 7.
void setSSLExcludedProtocols(java.lang.String protocols)
Format: Allowed values are “sslv3”, “tlsv1”, “tlsv1.1”, “tlsv1.2”.
Default: “” Note that TLSv1.1 and TLSv1.2 are supported starting with Java 7.
protocols
- The SSL Excluded Protocols property value, null to unset.java.lang.String getSSLProtocol()
Format: Allowed values are “sslv3”, “tlsv1”, “tlsv1.1”, “tlsv1.2”.
Default: “sslv3,tlsv1,tlsv1.1,tlsv1.2” Note that TLSv1.1 and TLSv1.2 are supported starting with Java 7.
void setSSLProtocol(java.lang.String protocol)
Format: Allowed values are “sslv3”, “tlsv1”, “tlsv1.1”, “tlsv1.2”.
Default: “sslv3,tlsv1,tlsv1.1,tlsv1.2” Note that TLSv1.1 and TLSv1.2 are supported starting with Java 7.
protocol
- The SSL Protocol property value, null to unset.java.lang.Boolean getSSLValidateCertificate()
Format: Valid values are true, false.
Default: true
void setSSLValidateCertificate(java.lang.Boolean validate)
SupportedProperty.SOLACE_JMS_SSL_VALIDATE_CERTIFICATE | Boolean | true | This property is used to specify whether the API should validate server certificates with certificates in the truststore. If set to false, no validation of the certificate date or common name is performed. |
Format: Valid values are true, false.
Default: true
validate
- The SSL Validate Certificate property, null to unset.java.lang.Boolean getSSLValidateCertificateHost()
Format: Valid values are true, false.
Default: true
void setSSLValidateCertificateHost(java.lang.Boolean validate)
This property has effect only when setSSLValidateCertificate(Boolean)
property is
enabled/set to true
Disabling of this property IS NOT RECOMMENDED
Default: true
if not set otherwise
validate
- The SSL Validate Certificate host property, null to unset.java.lang.Boolean getSSLValidateCertificateDate()
Format: Valid values are true, false.
Default: True
void setSSLValidateCertificateDate(java.lang.Boolean validateDate)
Format: Valid values are true, false.
Default: True
validateDate
- The SSL Validate Certificate Date property, null to unset.java.lang.String getSSLCipherSuites()
Format: Comma separated list of cipher names.
Default: All supported ciphers.
void setSSLCipherSuites(java.lang.String cipherSuites)
Format: Comma separated list of cipher names.
Default: All supported ciphers.
cipherSuites
- The list of ciphers to enable, null to unset.java.lang.String getSSLTrustStore()
Format: URL or path to the trust store.
Default: none.
void setSSLTrustStore(java.lang.String truststore)
Format: URL or path to the trust store.
Default: none.
truststore
- The trust store to use in URL or path format, null to unset.java.lang.String getSSLTrustStorePassword()
Format: String
Default: none.
void setSSLTrustStorePassword(java.lang.String password)
Format: String
Default: none.
password
- The trust store password, null to unset.java.lang.String getSSLTrustStoreFormat()
Format: Valid values are “jks”, “pkcs12”..
Default: “jks”
void setSSLTrustStoreFormat(java.lang.String format)
Format: Valid values are “jks”, “pkcs12”..
Default: “jks”
format
- The format of the given trust store, null to unset.java.lang.String getSSLKeyStore()
Format: URL or path to the key store.
Default: none.
void setSSLKeyStore(java.lang.String keystore)
Format: URL or path to the trust store.
Default: none.
keystore
- The key store to use in URL or path format, null to unset.java.lang.String getSSLKeyStorePassword()
Format: String
Default: none.
void setSSLKeyStorePassword(java.lang.String password)
Format: String
Default: none.
password
- The key store password, null to unset.java.lang.String getSSLKeyStoreFormat()
Format: Valid values include “jks”, “pkcs12”..
Default: “jks”
void setSSLKeyStoreFormat(java.lang.String format)
Format: Valid values include “jks”, “pkcs12”..
Default: “jks”
format
- The format of the given key store, null to unset.java.lang.String getSSLKeyStoreNormalizedFormat()
Format: Valid values include “jks”, “pkcs12”, etc.
Default: none
void setSSLKeyStoreNormalizedFormat(java.lang.String format)
Format: Valid values include “jks”, “pkcs12”, etc.
Default: none
format
- The format of the internal normalized key store, null to unset.java.lang.String getSSLPrivateKeyAlias()
void setSSLPrivateKeyAlias(java.lang.String alias)
alias
- The alias of the private keyjava.lang.String getSSLPrivateKeyPassword()
void setSSLPrivateKeyPassword(java.lang.String password)
password
- The password used to decipher the private keyjava.lang.String getSSLTrustedCommonNameList()
Format: A comma separated list of common names.
Default: No common names provided means that all common names are acceptable.
void setSSLTrustedCommonNameList(java.lang.String commonNames)
Format: A comma separated list of common names.
Default: No common names provided means that all common names are acceptable.
commonNames
- The list of acceptable common names for matching in server certificates, null to unset.java.lang.Integer getSubscriberLocalPriority()
Format: Valid values are [1..4]
Default: 1
void setSubscriberLocalPriority(java.lang.Integer subscriberLocalPriority)
Format: Valid values are [1..4]
Default: 1
subscriberLocalPriority
- the SubscriberLocalPriority property value, null to unset.java.lang.Integer getSubscriberNetworkPriority()
Format: Valid values are [1..4]
Default: 1
void setSubscriberNetworkPriority(java.lang.Integer subscriberNetworkPriority)
Format: Valid values are [1..4]
Default: 1
subscriberNetworkPriority
- the SubscriberNetworkPriority property value, null to unset.java.lang.Boolean getTcpNoDelay()
Default: true
void setTcpNoDelay(java.lang.Boolean tcpNoDelay)
Default: true
tcpNoDelay
- the TcpNoDelay property value, null to unset.java.lang.Boolean getUseDefaultContext()
Default: false (creates a new context for every connection)
void setUseDefaultContext(java.lang.Boolean useDefaultContext)
Default: false (creates a new context for every connection)
useDefaultContext
- the UseDefaultContext property value, null to unset.java.lang.String getUsername()
Format: The maximum length is 189 bytes when encoded in UTF-8 (with SolOS-TR 6.1 and above)
void setUsername(java.lang.String username)
SupportedProperty.AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE
(Client Certificate based authentication) with setAuthenticationScheme(String)
Format: The maximum length is 189 bytes when encoded in UTF-8 (with SolOS-TR 6.1 and above).
username
- the Username property value, null to unset.java.lang.String getVPN()
Format: The maximum length is 32 bytes when encoded in UTF-8
Default: “”
void setVPN(java.lang.String vpn)
Format: The maximum length is 32 bytes when encoded in UTF-8
Default: “”
vpn
- the VPN property value, null to unset.java.lang.String getSSLConnectionDowngradeTo()
void setSSLConnectionDowngradeTo(java.lang.String proto)
proto
- the SSLConnectionDowngradeTo property value, null to unset.java.lang.Boolean getXA()
Default: false
java.lang.Boolean getXmlPayload()
Default: true
void setXmlPayload(java.lang.Boolean xmlPayload)
Default: true
xmlPayload
- the XmlPayload property value, null to unset.java.lang.String getUnknownPublisherFlowAction()
void setUnknownPublisherFlowAction(java.lang.String action)
Default:
action
- the UnknownPublisherFlowAction property value, null to unset.java.util.Set<java.lang.String> getPropertyNames()
getProperty(String)
and setProperty(String, Object)
java.lang.Object getProperty(java.lang.String name)
getPropertyNames()
name
- Name of the property to returnvoid setProperty(java.lang.String name, java.lang.Object value)
getPropertyNames()
name
- The name of the property to setvalue
- The value to set the property tjava.lang.IllegalArgumentException
- on errorjava.lang.Object getEffectiveProperty(java.lang.String name)
getPropertyNames()
This method differs from getProperty(String)
in that it returns
the value that will be used in connection creation. If a property has not
been set through the api (or even if it has), this method may return the
default value or another value that overrides the connection factory's value.name
- Name of the property to return.java.lang.String toEffectiveString()
getEffectiveProperty(String)
was used to retrieve them.java.util.Properties toProperties()
Properties
instance.Properties
instance.void fromProperties(java.util.Properties properties)
Properties
instance.properties
- Values to set the ConnectionFactory properties from.java.lang.IllegalArgumentException
- on errorCopyright 2004-2024 Solace Corporation. All rights reserved.