Class ActiveMQActivationSpec
- java.lang.Object
-
- org.apache.activemq.artemis.ra.ConnectionFactoryProperties
-
- org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec
-
- All Implemented Interfaces:
java.io.Serializable,javax.resource.spi.ActivationSpec,javax.resource.spi.ResourceAdapterAssociation,org.apache.activemq.artemis.jms.client.ConnectionFactoryOptions
public class ActiveMQActivationSpec extends ConnectionFactoryProperties implements javax.resource.spi.ActivationSpec, java.io.Serializable
The activation spec These properties are set on the MDB ActivationProperties- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.BooleanallowLocalTransactionsjava.lang.StringstrConnectionParametersjava.lang.StringstrConnectorClassName
-
Constructor Summary
Constructors Constructor Description ActiveMQActivationSpec()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetAcknowledgeMode()Get the acknowledge modejava.lang.IntegergetAcknowledgeModeInt()java.lang.StringgetConnectionFactoryLookup()Get the connection factory lookupjava.lang.StringgetConnectionParameters()java.lang.StringgetConnectorClassName()java.lang.StringgetDestination()Get the destinationjava.lang.StringgetDestinationLookup()Get the destination lookupjava.lang.StringgetDestinationType()Get the destination typejava.lang.StringgetJndiParams()java.lang.IntegergetMaxSession()Get the number of max sessionjava.lang.StringgetMessageSelector()Get the message selectorjava.lang.StringgetOwnPassword()java.util.Hashtable<?,?>getParsedJndiParams()java.lang.StringgetPassword()Get the passwordjava.lang.StringgetQueuePrefix()javax.resource.spi.ResourceAdaptergetResourceAdapter()Get the resource adapterjava.lang.IntegergetSetupAttempts()java.lang.LonggetSetupInterval()java.lang.StringgetSubscriptionDurability()Get the subscription durabilityjava.lang.StringgetSubscriptionName()Get the subscription namejava.lang.StringgetTopicPrefix()java.lang.IntegergetTransactionTimeout()Get the transaction timeoutjava.lang.StringgetUser()Get the userinthashCode()java.lang.BooleanisAllowLocalTransactions()java.lang.BooleanisRebalanceConnections()java.lang.BooleanisShareSubscriptions()java.lang.BooleanisSingleConnection()Get the number of max sessionjava.lang.BooleanisSubscriptionDurable()Get the status of subscription durabilityjava.lang.BooleanisUseJNDI()java.lang.BooleanisUseLocalTx()voidsetAcknowledgeMode(java.lang.String value)Set the acknowledge modevoidsetAllowLocalTransactions(java.lang.Boolean allowLocalTransactions)voidsetClientId(java.lang.String clientId)voidsetConnectionFactoryLookup(java.lang.String value)Set the connection factory lookupvoidsetConnectionParameters(java.lang.String configuration)voidsetConnectorClassName(java.lang.String connectorClassName)voidsetDestination(java.lang.String value)Set the destinationvoidsetDestinationLookup(java.lang.String value)Set the destinationvoidsetDestinationType(java.lang.String value)Set the destination typevoidsetDLQHandler(java.lang.String handler)voidsetDLQJNDIName(java.lang.String name)voidsetDLQMaxResent(java.lang.Integer maxResent)voidsetJndiParams(java.lang.String jndiParams)voidsetKeepAlive(java.lang.Boolean keepAlive)voidsetKeepAliveMillis(java.lang.Long keepAliveMillis)voidsetMaxMessages(java.lang.Integer value)voidsetMaxSession(java.lang.Integer value)Set the number of max sessionvoidsetMessageSelector(java.lang.String value)Set the message selectorvoidsetMinSession(java.lang.Integer value)voidsetPassword(java.lang.String value)Set the passwordvoidsetProviderAdapterJNDI(java.lang.String jndi)voidsetQueuePrefix(java.lang.String prefix)voidsetRebalanceConnections(java.lang.Boolean rebalanceConnections)voidsetReconnectInterval(java.lang.Long interval)voidsetResourceAdapter(javax.resource.spi.ResourceAdapter ra)Set the resource adaptervoidsetSetupAttempts(java.lang.Integer setupAttempts)voidsetSetupInterval(java.lang.Long setupInterval)voidsetShareSubscriptions(java.lang.Boolean shareSubscriptions)voidsetSingleConnection(java.lang.Boolean value)Set the number of max sessionvoidsetSubscriptionDurability(java.lang.String value)Set the subscription durabilityvoidsetSubscriptionName(java.lang.String value)Set the subscription namevoidsetTopicPrefix(java.lang.String prefix)voidsetTransactionTimeout(java.lang.Integer value)Set the transaction timeoutvoidsetUseDLQ(java.lang.Boolean b)voidsetUseJNDI(java.lang.Boolean value)voidsetUseLocalTx(java.lang.Boolean localTx)voidsetUser(java.lang.String value)Set the userjava.lang.StringtoString()Get a string representationvoidvalidate()Validate-
Methods inherited from class org.apache.activemq.artemis.ra.ConnectionFactoryProperties
getCallFailoverTimeout, getCallTimeout, getClientFailureCheckPeriod, getClientID, getConfirmationWindowSize, getConnectionLoadBalancingPolicyClassName, getConnectionTTL, getConsumerMaxRate, getConsumerWindowSize, getDeserializationBlackList, getDeserializationWhiteList, getDiscoveryAddress, getDiscoveryInitialWaitTimeout, getDiscoveryLocalBindAddress, getDiscoveryPort, getDiscoveryRefreshTimeout, getDupsOKBatchSize, getGroupID, getInitialConnectAttempts, getInitialMessagePacketSize, getJgroupsChannelName, getJgroupsFile, getMaxRetryInterval, getMinLargeMessageSize, getParsedConnectionParameters, getParsedConnectorClassNames, getProducerMaxRate, getProducerWindowSize, getProtocolManagerFactoryStr, getReconnectAttempts, getRetryInterval, getRetryIntervalMultiplier, getScheduledThreadPoolMaxSize, getThreadPoolMaxSize, getTransactionBatchSize, isAutoGroup, isBlockOnAcknowledge, isBlockOnDurableSend, isBlockOnNonDurableSend, isCacheDestinations, isCacheLargeMessagesClient, isCompressLargeMessage, isEnable1xPrefixes, isEnableSharedClientID, isFailoverOnInitialConnection, isHA, isHasBeenUpdated, isPreAcknowledge, isUseGlobalPools, setAutoGroup, setBlockOnAcknowledge, setBlockOnDurableSend, setBlockOnNonDurableSend, setCacheDestinations, setCacheLargeMessagesClient, setCallFailoverTimeout, setCallTimeout, setClientFailureCheckPeriod, setClientID, setCompressLargeMessage, setConfirmationWindowSize, setConnectionLoadBalancingPolicyClassName, setConnectionTTL, setConsumerMaxRate, setConsumerWindowSize, setDeserializationBlackList, setDeserializationWhiteList, setDiscoveryAddress, setDiscoveryInitialWaitTimeout, setDiscoveryLocalBindAddress, setDiscoveryPort, setDiscoveryRefreshTimeout, setDupsOKBatchSize, setEnable1xPrefixes, setEnableSharedClientID, setFailoverOnInitialConnection, setGroupID, setHA, setInitialConnectAttempts, setInitialMessagePacketSize, setJgroupsChannelName, setJgroupsFile, setMaxRetryInterval, setMinLargeMessageSize, setParsedConnectionParameters, setParsedConnectorClassNames, setPreAcknowledge, setProducerMaxRate, setProducerWindowSize, setProtocolManagerFactoryStr, setReconnectAttempts, setRetryInterval, setRetryIntervalMultiplier, setScheduledThreadPoolMaxSize, setThreadPoolMaxSize, setTransactionBatchSize, setUseGlobalPools
-
-
-
-
Method Detail
-
getResourceAdapter
public javax.resource.spi.ResourceAdapter getResourceAdapter()
Get the resource adapter- Specified by:
getResourceAdapterin interfacejavax.resource.spi.ResourceAdapterAssociation- Returns:
- The resource adapter
-
isUseJNDI
public java.lang.Boolean isUseJNDI()
- Returns:
- the useJNDI
-
setUseJNDI
public void setUseJNDI(java.lang.Boolean value)
- Parameters:
value- the useJNDI to set
-
getJndiParams
public java.lang.String getJndiParams()
- Returns:
- return the jndi params to use
-
setJndiParams
public void setJndiParams(java.lang.String jndiParams)
-
getParsedJndiParams
public java.util.Hashtable<?,?> getParsedJndiParams()
-
setResourceAdapter
public void setResourceAdapter(javax.resource.spi.ResourceAdapter ra) throws javax.resource.ResourceExceptionSet the resource adapter- Specified by:
setResourceAdapterin interfacejavax.resource.spi.ResourceAdapterAssociation- Parameters:
ra- The resource adapter- Throws:
javax.resource.ResourceException- Thrown if incorrect resource adapter
-
getConnectionFactoryLookup
public java.lang.String getConnectionFactoryLookup()
Get the connection factory lookup- Returns:
- The value
-
setConnectionFactoryLookup
public void setConnectionFactoryLookup(java.lang.String value)
Set the connection factory lookup- Parameters:
value- The value
-
getDestination
public java.lang.String getDestination()
Get the destination- Returns:
- The value
-
setDestination
public void setDestination(java.lang.String value)
Set the destination- Parameters:
value- The value
-
getDestinationLookup
public java.lang.String getDestinationLookup()
Get the destination lookup- Returns:
- The value
-
setDestinationLookup
public void setDestinationLookup(java.lang.String value)
Set the destination- Parameters:
value- The value
-
getDestinationType
public java.lang.String getDestinationType()
Get the destination type- Returns:
- The value
-
setDestinationType
public void setDestinationType(java.lang.String value)
Set the destination type- Parameters:
value- The value
-
getMessageSelector
public java.lang.String getMessageSelector()
Get the message selector- Returns:
- The value
-
setMessageSelector
public void setMessageSelector(java.lang.String value)
Set the message selector- Parameters:
value- The value
-
getAcknowledgeMode
public java.lang.String getAcknowledgeMode()
Get the acknowledge mode- Returns:
- The value
-
setQueuePrefix
public void setQueuePrefix(java.lang.String prefix)
-
getQueuePrefix
public java.lang.String getQueuePrefix()
-
setTopicPrefix
public void setTopicPrefix(java.lang.String prefix)
-
getTopicPrefix
public java.lang.String getTopicPrefix()
-
setAcknowledgeMode
public void setAcknowledgeMode(java.lang.String value)
Set the acknowledge mode- Parameters:
value- The value
-
getAcknowledgeModeInt
public java.lang.Integer getAcknowledgeModeInt()
- Returns:
- the acknowledgement mode
-
getSubscriptionDurability
public java.lang.String getSubscriptionDurability()
Get the subscription durability- Returns:
- The value
-
setSubscriptionDurability
public void setSubscriptionDurability(java.lang.String value)
Set the subscription durability- Parameters:
value- The value
-
isSubscriptionDurable
public java.lang.Boolean isSubscriptionDurable()
Get the status of subscription durability- Returns:
- The value
-
getSubscriptionName
public java.lang.String getSubscriptionName()
Get the subscription name- Returns:
- The value
-
setSubscriptionName
public void setSubscriptionName(java.lang.String value)
Set the subscription name- Parameters:
value- The value
-
isShareSubscriptions
public java.lang.Boolean isShareSubscriptions()
- Returns:
- the shareDurableSubscriptions
-
setShareSubscriptions
public void setShareSubscriptions(java.lang.Boolean shareSubscriptions)
- Parameters:
shareSubscriptions- the shareDurableSubscriptions to set
-
getUser
public java.lang.String getUser()
Get the user- Returns:
- The value
-
setUser
public void setUser(java.lang.String value)
Set the user- Parameters:
value- The value
-
getPassword
public java.lang.String getPassword()
Get the password- Returns:
- The value
-
getOwnPassword
public java.lang.String getOwnPassword()
-
setPassword
public void setPassword(java.lang.String value) throws java.lang.ExceptionSet the password- Parameters:
value- The value- Throws:
java.lang.Exception
-
getMaxSession
public java.lang.Integer getMaxSession()
Get the number of max session- Returns:
- The value
-
setMaxSession
public void setMaxSession(java.lang.Integer value)
Set the number of max session- Parameters:
value- The value
-
isSingleConnection
public java.lang.Boolean isSingleConnection()
Get the number of max session- Returns:
- The value
-
setSingleConnection
public void setSingleConnection(java.lang.Boolean value)
Set the number of max session- Parameters:
value- The value
-
getTransactionTimeout
public java.lang.Integer getTransactionTimeout()
Get the transaction timeout- Returns:
- The value
-
setTransactionTimeout
public void setTransactionTimeout(java.lang.Integer value)
Set the transaction timeout- Parameters:
value- The value
-
isUseLocalTx
public java.lang.Boolean isUseLocalTx()
-
setUseLocalTx
public void setUseLocalTx(java.lang.Boolean localTx)
-
isRebalanceConnections
public java.lang.Boolean isRebalanceConnections()
-
setRebalanceConnections
public void setRebalanceConnections(java.lang.Boolean rebalanceConnections)
-
getSetupAttempts
public java.lang.Integer getSetupAttempts()
-
setSetupAttempts
public void setSetupAttempts(java.lang.Integer setupAttempts)
-
getSetupInterval
public java.lang.Long getSetupInterval()
-
setSetupInterval
public void setSetupInterval(java.lang.Long setupInterval)
-
setClientId
public void setClientId(java.lang.String clientId)
-
validate
public void validate() throws javax.resource.spi.InvalidPropertyExceptionValidate- Specified by:
validatein interfacejavax.resource.spi.ActivationSpec- Throws:
javax.resource.spi.InvalidPropertyException- Thrown if a validation exception occurs
-
getConnectorClassName
public java.lang.String getConnectorClassName()
-
setConnectorClassName
public void setConnectorClassName(java.lang.String connectorClassName)
-
getConnectionParameters
public java.lang.String getConnectionParameters()
- Returns:
- the connectionParameters
-
setConnectionParameters
public void setConnectionParameters(java.lang.String configuration)
-
toString
public java.lang.String toString()
Get a string representation- Overrides:
toStringin classjava.lang.Object- Returns:
- The value
-
setUseDLQ
public void setUseDLQ(java.lang.Boolean b)
-
setDLQJNDIName
public void setDLQJNDIName(java.lang.String name)
-
setDLQHandler
public void setDLQHandler(java.lang.String handler)
-
setDLQMaxResent
public void setDLQMaxResent(java.lang.Integer maxResent)
-
setProviderAdapterJNDI
public void setProviderAdapterJNDI(java.lang.String jndi)
-
setKeepAlive
public void setKeepAlive(java.lang.Boolean keepAlive)
- Parameters:
keepAlive- the keepAlive to set
-
setKeepAliveMillis
public void setKeepAliveMillis(java.lang.Long keepAliveMillis)
- Parameters:
keepAliveMillis- the keepAliveMillis to set
-
setReconnectInterval
public void setReconnectInterval(java.lang.Long interval)
-
setMinSession
public void setMinSession(java.lang.Integer value)
-
setMaxMessages
public void setMaxMessages(java.lang.Integer value)
-
isAllowLocalTransactions
public java.lang.Boolean isAllowLocalTransactions()
-
setAllowLocalTransactions
public void setAllowLocalTransactions(java.lang.Boolean allowLocalTransactions)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classConnectionFactoryProperties
-
hashCode
public int hashCode()
- Overrides:
hashCodein classConnectionFactoryProperties
-
-