Class ActiveMQConnectionFactory
- All Implemented Interfaces:
ConnectionFactory,XAConnectionFactory,Externalizable,Serializable,AutoCloseable,Referenceable,ConnectionFactoryOptions
- Direct Known Subclasses:
ActiveMQJMSConnectionFactory,ActiveMQQueueConnectionFactory,ActiveMQTopicConnectionFactory,ActiveMQXAConnectionFactory,ActiveMQXAQueueConnectionFactory,ActiveMQXATopicConnectionFactory
This connection factory will use defaults defined by DefaultConnectionProperties.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThis will use a default URI fromDefaultConnectionPropertiesActiveMQConnectionFactory(boolean ha, DiscoveryGroupConfiguration groupConfiguration) ActiveMQConnectionFactory(boolean ha, TransportConfiguration... initialConnectors) ActiveMQConnectionFactory(String brokerURL) ActiveMQConnectionFactory(String url, String user, String password) For compatibility and users used to this kind of constructorActiveMQConnectionFactory(ServerLocator serverLocator) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildFromProperties(Properties props) Set the properties that will represent the instance in JNDIvoidclose()Creates a connection with the default user identity.createConnection(String username, String password) Creates a connection with the specified user identity.protected ActiveMQConnectioncreateConnectionInternal(String username, String password, boolean isXA, int type) Creates a JMSContext with the default user identity and an unspecified sessionMode.createContext(int sessionMode) Creates a JMSContext with the default user identity and the specified session mode.createContext(String userName, String password) Creates a JMSContext with the specified user identity and an unspecified sessionMode.createContext(String userName, String password, int sessionMode) Creates a JMSContext with the specified user identity and the specified session mode.createQueueConnection(String username, String password) createTopicConnection(String username, String password) Creates anXAConnectionwith the default user identity.createXAConnection(String username, String password) Creates anXAConnectionwith the specified user identity.Creates aXAJMSContextwith the default user identitycreateXAContext(String userName, String password) Creates a JMSContext with the specified user identitycreateXAQueueConnection(String username, String password) createXATopicConnection(String username, String password) longlonglongintintlongintintDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intintintintlongintintintintlongdoubleintintintgetUser()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanDeprecated.booleanisHA()booleanbooleanbooleanbooleanprotected voidprotected voidpopulateProperties(Properties props) Initialize the instance from properties stored in JNDIvoidvoidsetAutoGroup(boolean autoGroup) voidsetBlockOnAcknowledge(boolean blockOnAcknowledge) voidsetBlockOnDurableSend(boolean blockOnDurableSend) voidsetBlockOnNonDurableSend(boolean blockOnNonDurableSend) voidsetBrokerURL(String brokerURL) Warning: This method will not clear any previous properties.voidsetCacheDestinations(boolean cacheDestinations) voidsetCacheLargeMessagesClient(boolean cacheLargeMessagesClient) voidsetCallFailoverTimeout(long callTimeout) voidsetCallTimeout(long callTimeout) voidsetClientFailureCheckPeriod(long clientFailureCheckPeriod) voidsetClientID(String clientID) voidsetCompressionLevel(int compressionLevel) voidsetCompressLargeMessage(boolean avoidLargeMessages) voidsetConfirmationWindowSize(int confirmationWindowSize) voidsetConnectionLoadBalancingPolicyClassName(String connectionLoadBalancingPolicyClassName) voidsetConnectionTTL(long connectionTTL) voidsetConsumerMaxRate(int consumerMaxRate) voidsetConsumerWindowSize(int consumerWindowSize) voidsetDeserializationAllowList(String allowList) voidsetDeserializationBlackList(String denyList) Deprecated, for removal: This API element is subject to removal in a future version.voidsetDeserializationDenyList(String denyList) voidsetDeserializationWhiteList(String allowList) Deprecated, for removal: This API element is subject to removal in a future version.voidsetDupsOKBatchSize(int dupsOKBatchSize) voidsetEnable1xPrefixes(boolean enable1xPrefixes) voidsetEnableSharedClientID(boolean enableSharedClientID) voidsetFailoverOnInitialConnection(boolean failover) Deprecated.voidsetGroupID(String groupID) voidsetIgnoreJTA(boolean ignoreJTA) voidsetIncomingInterceptorList(String interceptorList) Set the list ofInterceptors to use for incoming packets.voidsetInitialConnectAttempts(int reconnectAttempts) voidsetInitialMessagePacketSize(int size) voidsetMaxRetryInterval(long retryInterval) voidsetMinLargeMessageSize(int minLargeMessageSize) voidsetOutgoingInterceptorList(String interceptorList) Set the list ofInterceptors to use for outgoing packets.setPassword(String password) setPasswordCodec(String passwordCodec) voidsetPreAcknowledge(boolean preAcknowledge) voidsetProducerMaxRate(int producerMaxRate) voidsetProducerWindowSize(int producerWindowSize) voidsetProtocolManagerFactoryStr(String protocolManagerFactoryStr) voidsetReconnectAttempts(int reconnectAttempts) voidsetRetryInterval(long retryInterval) voidsetRetryIntervalMultiplier(double retryIntervalMultiplier) voidsetScheduledThreadPoolMaxSize(int scheduledThreadPoolMaxSize) voidsetThreadPoolMaxSize(int threadPoolMaxSize) voidsetTransactionBatchSize(int transactionBatchSize) voidsetUseGlobalPools(boolean useGlobalPools) voidsetUseTopologyForLoadBalancing(boolean useTopologyForLoadBalancing) toString()toURI()voidMethods inherited from class org.apache.activemq.artemis.jndi.JNDIStorable
getReference, readObject, writeObject
-
Constructor Details
-
ActiveMQConnectionFactory
public ActiveMQConnectionFactory()This will use a default URI fromDefaultConnectionProperties -
ActiveMQConnectionFactory
-
ActiveMQConnectionFactory
For compatibility and users used to this kind of constructor -
ActiveMQConnectionFactory
-
ActiveMQConnectionFactory
-
ActiveMQConnectionFactory
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
toURI
- Throws:
IOException
-
getProtocolManagerFactoryStr
-
setProtocolManagerFactoryStr
-
getDeserializationBlackList
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDeserializationBlackListin interfaceConnectionFactoryOptions
-
setDeserializationBlackList
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setDeserializationBlackListin interfaceConnectionFactoryOptions
-
getDeserializationWhiteList
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getDeserializationWhiteListin interfaceConnectionFactoryOptions
-
setDeserializationWhiteList
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setDeserializationWhiteListin interfaceConnectionFactoryOptions
-
getDeserializationDenyList
- Specified by:
getDeserializationDenyListin interfaceConnectionFactoryOptions
-
setDeserializationDenyList
- Specified by:
setDeserializationDenyListin interfaceConnectionFactoryOptions
-
getDeserializationAllowList
- Specified by:
getDeserializationAllowListin interfaceConnectionFactoryOptions
-
setDeserializationAllowList
- Specified by:
setDeserializationAllowListin interfaceConnectionFactoryOptions
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
setBrokerURL
Warning: This method will not clear any previous properties. For example, if you set the user first then you change the brokerURL without passing the user. The previously set user will still exist, and nothing will clear it out.Also, you cannot use this method after this
ConnectionFactoryis madereadOnlywhich happens after the first time it's used to create a connection.- Throws:
JMSException
-
createConnection
Description copied from interface:ConnectionFactoryCreates a connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until theConnection.startmethod is explicitly called.- Specified by:
createConnectionin interfaceConnectionFactory- Returns:
- a newly created connection
- Throws:
JMSException- if the Jakarta Messaging provider fails to create the connection due to some internal error.JMSSecurityException- if client authentication fails due to an invalid user name or password.
-
createConnection
Description copied from interface:ConnectionFactoryCreates a connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until theConnection.startmethod is explicitly called.- Specified by:
createConnectionin interfaceConnectionFactory- Parameters:
username- the caller's user namepassword- the caller's password- Returns:
- a newly created connection
- Throws:
JMSException- if the Jakarta Messaging provider fails to create the connection due to some internal error.JMSSecurityException- if client authentication fails due to an invalid user name or password.
-
createContext
Description copied from interface:ConnectionFactoryCreates a JMSContext with the default user identity and an unspecified sessionMode.A connection and session are created for use by the new JMSContext. The connection is created in stopped mode but will be automatically started when a JMSConsumer is created.
The behaviour of the session that is created depends on whether this method is called in a Java SE environment, in the Jakarta EE application client container, or in the Jakarta EE web or EJB container. If this method is called in the Jakarta EE web or EJB container then the behaviour of the session also depends on whether or not there is an active JTA transaction in progress.
In a Java SE environment or in the Jakarta EE application client container:
- The session will be non-transacted and received messages will be acknowledged automatically using an
acknowledgement mode of
JMSContext.AUTO_ACKNOWLEDGEFor a definition of the meaning of this acknowledgement mode see the link below.
In a Jakarta EE web or EJB container, when there is an active JTA transaction in progress:
- The session will participate in the JTA transaction and will be committed or rolled back when that transaction is
committed or rolled back, not by calling the
JMSContext'scommitorrollbackmethods.
In the Jakarta EE web or EJB container, when there is no active JTA transaction in progress:
- The session will be non-transacted and received messages will be acknowledged automatically using an
acknowledgement mode of
JMSContext.AUTO_ACKNOWLEDGEFor a definition of the meaning of this acknowledgement mode see the link below.
- Specified by:
createContextin interfaceConnectionFactory- Returns:
- a newly created JMSContext
- See Also:
- The session will be non-transacted and received messages will be acknowledged automatically using an
acknowledgement mode of
-
createContext
Description copied from interface:ConnectionFactoryCreates a JMSContext with the default user identity and the specified session mode.A connection and session are created for use by the new JMSContext. The JMSContext is created in stopped mode but will be automatically started when a JMSConsumer is created.
The effect of setting the
sessionModeargument depends on whether this method is called in a Java SE environment, in the Jakarta EE application client container, or in the Jakarta EE web or EJB container. If this method is called in the Jakarta EE web or EJB container then the effect of setting thesessionModeargument also depends on whether or not there is an active JTA transaction in progress.In a Java SE environment or in the Jakarta EE application client container:
- If
sessionModeis set toJMSContext.SESSION_TRANSACTEDthen the session will use a local transaction which may subsequently be committed or rolled back by calling theJMSContext'scommitorrollbackmethods. - If
sessionModeis set to any ofJMSContext.CLIENT_ACKNOWLEDGE,JMSContext.AUTO_ACKNOWLEDGEorJMSContext.DUPS_OK_ACKNOWLEDGE. then the session will be non-transacted and messages received by this session will be acknowledged according to the value ofsessionMode. For a definition of the meaning of these acknowledgement modes see the links below.
In a Jakarta EE web or EJB container, when there is an active JTA transaction in progress:
- The argument
sessionModeis ignored. The session will participate in the JTA transaction and will be committed or rolled back when that transaction is committed or rolled back, not by calling theJMSContext'scommitorrollbackmethods. Since the argument is ignored, developers are recommended to usecreateContext()instead of this method.
In the Jakarta EE web or EJB container, when there is no active JTA transaction in progress:
- The argument
acknowledgeModemust be set to either ofJMSContext.AUTO_ACKNOWLEDGEorJMSContext.DUPS_OK_ACKNOWLEDGE. The session will be non-transacted and messages received by this session will be acknowledged automatically according to the value ofacknowledgeMode. For a definition of the meaning of these acknowledgement modes see the links below. The valuesJMSContext.SESSION_TRANSACTEDandJMSContext.CLIENT_ACKNOWLEDGEmay not be used.
- Specified by:
createContextin interfaceConnectionFactory- Parameters:
sessionMode- indicates which of four possible session modes will be used.- If this method is called in a Java SE environment or in the Jakarta EE application client container, the permitted
values are
JMSContext.SESSION_TRANSACTED,JMSContext.CLIENT_ACKNOWLEDGE,JMSContext.AUTO_ACKNOWLEDGEandJMSContext.DUPS_OK_ACKNOWLEDGE. - If this method is called in the Jakarta EE web or EJB container when there is an active JTA transaction in progress then this argument is ignored.
- If this method is called in the Jakarta EE web or EJB container when there is no active JTA transaction in progress,
the permitted values are
JMSContext.AUTO_ACKNOWLEDGEandJMSContext.DUPS_OK_ACKNOWLEDGE. In this case the valuesJMSContext.TRANSACTEDandJMSContext.CLIENT_ACKNOWLEDGEare not permitted.
- If this method is called in a Java SE environment or in the Jakarta EE application client container, the permitted
values are
- Returns:
- a newly created JMSContext
- See Also:
-
JMSContext.SESSION_TRANSACTEDJMSContext.CLIENT_ACKNOWLEDGEJMSContext.AUTO_ACKNOWLEDGEJMSContext.DUPS_OK_ACKNOWLEDGEConnectionFactory.createContext()ConnectionFactory.createContext(java.lang.String, java.lang.String)ConnectionFactory.createContext(java.lang.String, java.lang.String, int)JMSContext.createContext(int)
- If
-
createContext
Description copied from interface:ConnectionFactoryCreates a JMSContext with the specified user identity and an unspecified sessionMode.A connection and session are created for use by the new JMSContext. The connection is created in stopped mode but will be automatically started when a JMSConsumer.
The behaviour of the session that is created depends on whether this method is called in a Java SE environment, in the Jakarta EE application client container, or in the Jakarta EE web or EJB container. If this method is called in the Jakarta EE web or EJB container then the behaviour of the session also depends on whether or not there is an active JTA transaction in progress.
In a Java SE environment or in the Jakarta EE application client container:
- The session will be non-transacted and received messages will be acknowledged automatically using an
acknowledgement mode of
JMSContext.AUTO_ACKNOWLEDGEFor a definition of the meaning of this acknowledgement mode see the link below.
In a Jakarta EE web or EJB container, when there is an active JTA transaction in progress:
- The session will participate in the JTA transaction and will be committed or rolled back when that transaction is
committed or rolled back, not by calling the
JMSContext'scommitorrollbackmethods.
In the Jakarta EE web or EJB container, when there is no active JTA transaction in progress:
- The session will be non-transacted and received messages will be acknowledged automatically using an
acknowledgement mode of
JMSContext.AUTO_ACKNOWLEDGEFor a definition of the meaning of this acknowledgement mode see the link below.
- Specified by:
createContextin interfaceConnectionFactory- Parameters:
userName- the caller's user namepassword- the caller's password- Returns:
- a newly created JMSContext
- See Also:
- The session will be non-transacted and received messages will be acknowledged automatically using an
acknowledgement mode of
-
createContext
Description copied from interface:ConnectionFactoryCreates a JMSContext with the specified user identity and the specified session mode.A connection and session are created for use by the new JMSContext. The JMSContext is created in stopped mode but will be automatically started when a JMSConsumer is created.
The effect of setting the
sessionModeargument depends on whether this method is called in a Java SE environment, in the Jakarta EE application client container, or in the Jakarta EE web or EJB container. If this method is called in the Jakarta EE web or EJB container then the effect of setting thesessionModeargument also depends on whether or not there is an active JTA transaction in progress.In a Java SE environment or in the Jakarta EE application client container:
- If
sessionModeis set toJMSContext.SESSION_TRANSACTEDthen the session will use a local transaction which may subsequently be committed or rolled back by calling theJMSContext'scommitorrollbackmethods. - If
sessionModeis set to any ofJMSContext.CLIENT_ACKNOWLEDGE,JMSContext.AUTO_ACKNOWLEDGEorJMSContext.DUPS_OK_ACKNOWLEDGE. then the session will be non-transacted and messages received by this session will be acknowledged according to the value ofsessionMode. For a definition of the meaning of these acknowledgement modes see the links below.
In a Jakarta EE web or EJB container, when there is an active JTA transaction in progress:
- The argument
sessionModeis ignored. The session will participate in the JTA transaction and will be committed or rolled back when that transaction is committed or rolled back, not by calling theJMSContext'scommitorrollbackmethods. Since the argument is ignored, developers are recommended to usecreateContext(String userName, String password)instead of this method.
In the Jakarta EE web or EJB container, when there is no active JTA transaction in progress:
- The argument
acknowledgeModemust be set to either ofJMSContext.AUTO_ACKNOWLEDGEorJMSContext.DUPS_OK_ACKNOWLEDGE. The session will be non-transacted and messages received by this session will be acknowledged automatically according to the value ofacknowledgeMode. For a definition of the meaning of these acknowledgement modes see the links below. The valuesJMSContext.SESSION_TRANSACTEDandJMSContext.CLIENT_ACKNOWLEDGEmay not be used.
- Specified by:
createContextin interfaceConnectionFactory- Parameters:
userName- the caller's user namepassword- the caller's passwordsessionMode- indicates which of four possible session modes will be used.- If this method is called in a Java SE environment or in the Jakarta EE application client container, the permitted
values are
JMSContext.SESSION_TRANSACTED,JMSContext.CLIENT_ACKNOWLEDGE,JMSContext.AUTO_ACKNOWLEDGEandJMSContext.DUPS_OK_ACKNOWLEDGE. - If this method is called in the Jakarta EE web or EJB container when there is an active JTA transaction in progress then this argument is ignored.
- If this method is called in the Jakarta EE web or EJB container when there is no active JTA transaction in progress,
the permitted values are
JMSContext.AUTO_ACKNOWLEDGEandJMSContext.DUPS_OK_ACKNOWLEDGE. In this case the valuesJMSContext.TRANSACTEDandJMSContext.CLIENT_ACKNOWLEDGEare not permitted.
- If this method is called in a Java SE environment or in the Jakarta EE application client container, the permitted
values are
- Returns:
- a newly created JMSContext
- See Also:
- If
-
createQueueConnection
- Throws:
JMSException
-
createQueueConnection
- Throws:
JMSException
-
createTopicConnection
- Throws:
JMSException
-
createTopicConnection
- Throws:
JMSException
-
createXAConnection
Description copied from interface:XAConnectionFactoryCreates anXAConnectionwith the default user identity. The connection is created in stopped mode. No messages will be delivered until theConnection.startmethod is explicitly called.- Specified by:
createXAConnectionin interfaceXAConnectionFactory- Returns:
- a newly created
XAConnection - Throws:
JMSException- if the Jakarta Messaging provider fails to create an XA connection due to some internal error.JMSSecurityException- if client authentication fails due to an invalid user name or password.
-
createXAConnection
Description copied from interface:XAConnectionFactoryCreates anXAConnectionwith the specified user identity. The connection is created in stopped mode. No messages will be delivered until theConnection.startmethod is explicitly called.- Specified by:
createXAConnectionin interfaceXAConnectionFactory- Parameters:
username- the caller's user namepassword- the caller's password- Returns:
- a newly created
XAConnection - Throws:
JMSException- if the Jakarta Messaging provider fails to create an XA connection due to some internal error.JMSSecurityException- if client authentication fails due to an invalid user name or password.
-
createXAContext
Description copied from interface:XAConnectionFactoryCreates aXAJMSContextwith the default user identityA connection and session are created for use by the new
XAJMSContext. The connection is created in stopped mode but will be automatically started when aJMSConsumeris created.- Specified by:
createXAContextin interfaceXAConnectionFactory- Returns:
- a newly created
XAJMSContext
-
createXAContext
Description copied from interface:XAConnectionFactoryCreates a JMSContext with the specified user identityA connection and session are created for use by the new
XAJMSContext. The connection is created in stopped mode but will be automatically started when aJMSConsumeris created.- Specified by:
createXAContextin interfaceXAConnectionFactory- Parameters:
userName- the caller's user namepassword- the caller's password- Returns:
- a newly created JMSContext
-
createXAQueueConnection
- Throws:
JMSException
-
createXAQueueConnection
public XAQueueConnection createXAQueueConnection(String username, String password) throws JMSException - Throws:
JMSException
-
createXATopicConnection
- Throws:
JMSException
-
createXATopicConnection
public XATopicConnection createXATopicConnection(String username, String password) throws JMSException - Throws:
JMSException
-
buildFromProperties
Description copied from class:JNDIStorableSet the properties that will represent the instance in JNDI- Specified by:
buildFromPropertiesin classJNDIStorable- Parameters:
props- The properties to use when building the new isntance.
-
populateProperties
Description copied from class:JNDIStorableInitialize the instance from properties stored in JNDI- Specified by:
populatePropertiesin classJNDIStorable- Parameters:
props- The properties to use when initializing the new instance.
-
isHA
public boolean isHA() -
getConnectionLoadBalancingPolicyClassName
-
setConnectionLoadBalancingPolicyClassName
public void setConnectionLoadBalancingPolicyClassName(String connectionLoadBalancingPolicyClassName) -
getStaticConnectors
-
getDiscoveryGroupConfiguration
-
getClientID
-
setClientID
-
getDupsOKBatchSize
public int getDupsOKBatchSize() -
setDupsOKBatchSize
public void setDupsOKBatchSize(int dupsOKBatchSize) -
getTransactionBatchSize
public int getTransactionBatchSize() -
setTransactionBatchSize
public void setTransactionBatchSize(int transactionBatchSize) -
isCacheDestinations
public boolean isCacheDestinations() -
setCacheDestinations
public void setCacheDestinations(boolean cacheDestinations) -
isEnable1xPrefixes
public boolean isEnable1xPrefixes() -
setEnable1xPrefixes
public void setEnable1xPrefixes(boolean enable1xPrefixes) -
getClientFailureCheckPeriod
public long getClientFailureCheckPeriod() -
setClientFailureCheckPeriod
public void setClientFailureCheckPeriod(long clientFailureCheckPeriod) -
getConnectionTTL
public long getConnectionTTL() -
setConnectionTTL
public void setConnectionTTL(long connectionTTL) -
getCallTimeout
public long getCallTimeout() -
setCallTimeout
public void setCallTimeout(long callTimeout) -
getCallFailoverTimeout
public long getCallFailoverTimeout() -
setCallFailoverTimeout
public void setCallFailoverTimeout(long callTimeout) -
setUseTopologyForLoadBalancing
public void setUseTopologyForLoadBalancing(boolean useTopologyForLoadBalancing) -
isUseTopologyForLoadBalancing
public boolean isUseTopologyForLoadBalancing() -
getConsumerWindowSize
public int getConsumerWindowSize() -
setConsumerWindowSize
public void setConsumerWindowSize(int consumerWindowSize) -
getConsumerMaxRate
public int getConsumerMaxRate() -
setConsumerMaxRate
public void setConsumerMaxRate(int consumerMaxRate) -
getConfirmationWindowSize
public int getConfirmationWindowSize() -
setConfirmationWindowSize
public void setConfirmationWindowSize(int confirmationWindowSize) -
getProducerMaxRate
public int getProducerMaxRate() -
setProducerMaxRate
public void setProducerMaxRate(int producerMaxRate) -
getProducerWindowSize
public int getProducerWindowSize() -
setProducerWindowSize
public void setProducerWindowSize(int producerWindowSize) -
setCacheLargeMessagesClient
public void setCacheLargeMessagesClient(boolean cacheLargeMessagesClient) -
isCacheLargeMessagesClient
public boolean isCacheLargeMessagesClient() -
getMinLargeMessageSize
public int getMinLargeMessageSize() -
setMinLargeMessageSize
public void setMinLargeMessageSize(int minLargeMessageSize) -
isBlockOnAcknowledge
public boolean isBlockOnAcknowledge() -
setBlockOnAcknowledge
public void setBlockOnAcknowledge(boolean blockOnAcknowledge) -
isBlockOnNonDurableSend
public boolean isBlockOnNonDurableSend() -
setBlockOnNonDurableSend
public void setBlockOnNonDurableSend(boolean blockOnNonDurableSend) -
isBlockOnDurableSend
public boolean isBlockOnDurableSend() -
setBlockOnDurableSend
public void setBlockOnDurableSend(boolean blockOnDurableSend) -
isAutoGroup
public boolean isAutoGroup() -
setAutoGroup
public void setAutoGroup(boolean autoGroup) -
isPreAcknowledge
public boolean isPreAcknowledge() -
setPreAcknowledge
public void setPreAcknowledge(boolean preAcknowledge) -
getRetryInterval
public long getRetryInterval() -
setRetryInterval
public void setRetryInterval(long retryInterval) -
getMaxRetryInterval
public long getMaxRetryInterval() -
setMaxRetryInterval
public void setMaxRetryInterval(long retryInterval) -
getRetryIntervalMultiplier
public double getRetryIntervalMultiplier() -
setRetryIntervalMultiplier
public void setRetryIntervalMultiplier(double retryIntervalMultiplier) -
getReconnectAttempts
public int getReconnectAttempts() -
setReconnectAttempts
public void setReconnectAttempts(int reconnectAttempts) -
setInitialConnectAttempts
public void setInitialConnectAttempts(int reconnectAttempts) -
getInitialConnectAttempts
public int getInitialConnectAttempts() -
isFailoverOnInitialConnection
Deprecated. -
setFailoverOnInitialConnection
Deprecated. -
isUseGlobalPools
public boolean isUseGlobalPools() -
setUseGlobalPools
public void setUseGlobalPools(boolean useGlobalPools) -
getScheduledThreadPoolMaxSize
public int getScheduledThreadPoolMaxSize() -
setScheduledThreadPoolMaxSize
public void setScheduledThreadPoolMaxSize(int scheduledThreadPoolMaxSize) -
getThreadPoolMaxSize
public int getThreadPoolMaxSize() -
setThreadPoolMaxSize
public void setThreadPoolMaxSize(int threadPoolMaxSize) -
getInitialMessagePacketSize
public int getInitialMessagePacketSize() -
setInitialMessagePacketSize
public void setInitialMessagePacketSize(int size) -
isIgnoreJTA
public boolean isIgnoreJTA() -
setIgnoreJTA
public void setIgnoreJTA(boolean ignoreJTA) -
setIncomingInterceptorList
Set the list ofInterceptors to use for incoming packets.- Parameters:
interceptorList- a comma separated string of incoming interceptor class names to be used. Each interceptor needs a default Constructor to be used with this method.
-
getIncomingInterceptorList
-
setOutgoingInterceptorList
Set the list ofInterceptors to use for outgoing packets.- Parameters:
interceptorList- a comma separated string of incoming interceptor class names to be used. Each interceptor needs a default Constructor to be used with this method.
-
getOutgoingInterceptorList
-
setUser
-
getUser
-
getPassword
-
setPassword
-
getPasswordCodec
-
setPasswordCodec
-
setGroupID
-
getGroupID
-
isCompressLargeMessage
public boolean isCompressLargeMessage() -
setCompressLargeMessage
public void setCompressLargeMessage(boolean avoidLargeMessages) -
getCompressionLevel
public int getCompressionLevel() -
setCompressionLevel
public void setCompressionLevel(int compressionLevel) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getServerLocator
-
getFactoryType
public int getFactoryType() -
createConnectionInternal
protected ActiveMQConnection createConnectionInternal(String username, String password, boolean isXA, int type) throws JMSException - Throws:
JMSException
-
toString
-
makeReadOnly
protected void makeReadOnly()
-