public class ActiveMQConnectionFactory extends JNDIStorable implements ConnectionFactoryOptions, Externalizable, javax.jms.ConnectionFactory, javax.jms.XAConnectionFactory, AutoCloseable
ActiveMQ Artemis implementation of a JMS ConnectionFactory.
This connection factory will use defaults defined by DefaultConnectionProperties.
| Constructor and Description |
|---|
ActiveMQConnectionFactory()
This will use a default URI from
DefaultConnectionProperties |
ActiveMQConnectionFactory(boolean ha,
DiscoveryGroupConfiguration groupConfiguration) |
ActiveMQConnectionFactory(boolean ha,
TransportConfiguration... initialConnectors) |
ActiveMQConnectionFactory(ServerLocator serverLocator) |
ActiveMQConnectionFactory(String brokerURL) |
ActiveMQConnectionFactory(String url,
String user,
String password)
For compatibility and users used to this kind of constructor
|
getReference, readObject, writeObjectpublic ActiveMQConnectionFactory()
DefaultConnectionPropertiespublic ActiveMQConnectionFactory(String brokerURL)
public ActiveMQConnectionFactory(String url, String user, String password)
public ActiveMQConnectionFactory(ServerLocator serverLocator)
public ActiveMQConnectionFactory(boolean ha,
DiscoveryGroupConfiguration groupConfiguration)
public ActiveMQConnectionFactory(boolean ha,
TransportConfiguration... initialConnectors)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic URI toURI() throws IOException
IOExceptionpublic String getProtocolManagerFactoryStr()
public void setProtocolManagerFactoryStr(String protocolManagerFactoryStr)
public ActiveMQConnectionFactory disableFinalizeChecks()
public boolean isFinalizeChecks()
public String getDeserializationBlackList()
getDeserializationBlackList in interface ConnectionFactoryOptionspublic void setDeserializationBlackList(String blackList)
setDeserializationBlackList in interface ConnectionFactoryOptionspublic String getDeserializationWhiteList()
getDeserializationWhiteList in interface ConnectionFactoryOptionspublic void setDeserializationWhiteList(String whiteList)
setDeserializationWhiteList in interface ConnectionFactoryOptionspublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void setBrokerURL(String brokerURL) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.Connection createConnection()
throws javax.jms.JMSException
createConnection in interface javax.jms.ConnectionFactoryjavax.jms.JMSExceptionpublic javax.jms.Connection createConnection(String username, String password) throws javax.jms.JMSException
createConnection in interface javax.jms.ConnectionFactoryjavax.jms.JMSExceptionpublic javax.jms.JMSContext createContext()
createContext in interface javax.jms.ConnectionFactorypublic javax.jms.JMSContext createContext(int sessionMode)
createContext in interface javax.jms.ConnectionFactorypublic javax.jms.JMSContext createContext(String userName, String password)
createContext in interface javax.jms.ConnectionFactorypublic javax.jms.JMSContext createContext(String userName, String password, int sessionMode)
createContext in interface javax.jms.ConnectionFactorypublic javax.jms.QueueConnection createQueueConnection()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.QueueConnection createQueueConnection(String username, String password) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.TopicConnection createTopicConnection()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.TopicConnection createTopicConnection(String username, String password) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.XAConnection createXAConnection()
throws javax.jms.JMSException
createXAConnection in interface javax.jms.XAConnectionFactoryjavax.jms.JMSExceptionpublic javax.jms.XAConnection createXAConnection(String username, String password) throws javax.jms.JMSException
createXAConnection in interface javax.jms.XAConnectionFactoryjavax.jms.JMSExceptionpublic javax.jms.XAJMSContext createXAContext()
createXAContext in interface javax.jms.XAConnectionFactorypublic javax.jms.XAJMSContext createXAContext(String userName, String password)
createXAContext in interface javax.jms.XAConnectionFactorypublic javax.jms.XAQueueConnection createXAQueueConnection()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.XAQueueConnection createXAQueueConnection(String username, String password) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.XATopicConnection createXATopicConnection()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.XATopicConnection createXATopicConnection(String username, String password) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected void buildFromProperties(Properties props)
JNDIStorablebuildFromProperties in class JNDIStorableprops - The properties to use when building the new isntance.protected void populateProperties(Properties props)
JNDIStorablepopulateProperties in class JNDIStorableprops - The properties to use when initializing the new instance.public boolean isHA()
public String getConnectionLoadBalancingPolicyClassName()
public void setConnectionLoadBalancingPolicyClassName(String connectionLoadBalancingPolicyClassName)
public TransportConfiguration[] getStaticConnectors()
public DiscoveryGroupConfiguration getDiscoveryGroupConfiguration()
public String getClientID()
public void setClientID(String clientID)
public boolean isEnableSharedClientID()
public void setEnableSharedClientID(boolean enableSharedClientID)
public int getDupsOKBatchSize()
public void setDupsOKBatchSize(int dupsOKBatchSize)
public int getTransactionBatchSize()
public void setTransactionBatchSize(int transactionBatchSize)
public boolean isCacheDestinations()
public void setCacheDestinations(boolean cacheDestinations)
public boolean isEnable1xPrefixes()
public void setEnable1xPrefixes(boolean enable1xPrefixes)
public long getClientFailureCheckPeriod()
public void setClientFailureCheckPeriod(long clientFailureCheckPeriod)
public long getConnectionTTL()
public void setConnectionTTL(long connectionTTL)
public long getCallTimeout()
public void setCallTimeout(long callTimeout)
public long getCallFailoverTimeout()
public void setCallFailoverTimeout(long callTimeout)
public void setUseTopologyForLoadBalancing(boolean useTopologyForLoadBalancing)
public boolean isUseTopologyForLoadBalancing()
public int getConsumerWindowSize()
public void setConsumerWindowSize(int consumerWindowSize)
public int getConsumerMaxRate()
public void setConsumerMaxRate(int consumerMaxRate)
public int getConfirmationWindowSize()
public void setConfirmationWindowSize(int confirmationWindowSize)
public int getProducerMaxRate()
public void setProducerMaxRate(int producerMaxRate)
public int getProducerWindowSize()
public void setProducerWindowSize(int producerWindowSize)
public void setCacheLargeMessagesClient(boolean cacheLargeMessagesClient)
cacheLargeMessagesClient - public boolean isCacheLargeMessagesClient()
public int getMinLargeMessageSize()
public void setMinLargeMessageSize(int minLargeMessageSize)
public boolean isBlockOnAcknowledge()
public void setBlockOnAcknowledge(boolean blockOnAcknowledge)
public boolean isBlockOnNonDurableSend()
public void setBlockOnNonDurableSend(boolean blockOnNonDurableSend)
public boolean isBlockOnDurableSend()
public void setBlockOnDurableSend(boolean blockOnDurableSend)
public boolean isAutoGroup()
public void setAutoGroup(boolean autoGroup)
public boolean isPreAcknowledge()
public void setPreAcknowledge(boolean preAcknowledge)
public long getRetryInterval()
public void setRetryInterval(long retryInterval)
public long getMaxRetryInterval()
public void setMaxRetryInterval(long retryInterval)
public double getRetryIntervalMultiplier()
public void setRetryIntervalMultiplier(double retryIntervalMultiplier)
public int getReconnectAttempts()
public void setReconnectAttempts(int reconnectAttempts)
public void setInitialConnectAttempts(int reconnectAttempts)
public int getInitialConnectAttempts()
@Deprecated public boolean isFailoverOnInitialConnection()
@Deprecated public void setFailoverOnInitialConnection(boolean failover)
public boolean isUseGlobalPools()
public void setUseGlobalPools(boolean useGlobalPools)
public int getScheduledThreadPoolMaxSize()
public void setScheduledThreadPoolMaxSize(int scheduledThreadPoolMaxSize)
public int getThreadPoolMaxSize()
public void setThreadPoolMaxSize(int threadPoolMaxSize)
public int getInitialMessagePacketSize()
public void setInitialMessagePacketSize(int size)
public boolean isIgnoreJTA()
public void setIgnoreJTA(boolean ignoreJTA)
public void setIncomingInterceptorList(String interceptorList)
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.public String getIncomingInterceptorList()
public void setOutgoingInterceptorList(String interceptorList)
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.public String getOutgoingInterceptorList()
public ActiveMQConnectionFactory setUser(String user)
public String getUser()
public String getPassword()
public ActiveMQConnectionFactory setPassword(String password)
public void setGroupID(String groupID)
public String getGroupID()
public boolean isCompressLargeMessage()
public void setCompressLargeMessage(boolean avoidLargeMessages)
public void close()
close in interface AutoCloseablepublic ServerLocator getServerLocator()
public int getFactoryType()
protected ActiveMQConnection createConnectionInternal(String username, String password, boolean isXA, int type) throws javax.jms.JMSException
javax.jms.JMSExceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.