Class ActiveMQActivationSpec
- java.lang.Object
-
- org.apache.activemq.artemis.ra.ConnectionFactoryProperties
-
- org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec
-
- All Implemented Interfaces:
Serializable,javax.resource.spi.ActivationSpec,javax.resource.spi.ResourceAdapterAssociation,ConnectionFactoryOptions
public class ActiveMQActivationSpec extends ConnectionFactoryProperties implements javax.resource.spi.ActivationSpec, 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 BooleanallowLocalTransactionsStringstrConnectionParametersStringstrConnectorClassName
-
Constructor Summary
Constructors Constructor Description ActiveMQActivationSpec()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)StringgetAcknowledgeMode()Get the acknowledge modeIntegergetAcknowledgeModeInt()StringgetConnectionFactoryLookup()Get the connection factory lookupStringgetConnectionParameters()StringgetConnectorClassName()StringgetDestination()Get the destinationStringgetDestinationLookup()Get the destination lookupStringgetDestinationType()Get the destination typeStringgetJndiParams()IntegergetMaxSession()Get the number of max sessionStringgetMessageSelector()Get the message selectorStringgetOwnPassword()Hashtable<?,?>getParsedJndiParams()StringgetPassword()Get the passwordStringgetQueuePrefix()BooleangetRebalanceConnections()javax.resource.spi.ResourceAdaptergetResourceAdapter()Get the resource adapterIntegergetSetupAttempts()LonggetSetupInterval()StringgetSubscriptionDurability()Get the subscription durabilityStringgetSubscriptionName()Get the subscription nameStringgetTopicPrefix()IntegergetTransactionTimeout()Deprecated, for removal: This API element is subject to removal in a future version.StringgetUser()Get the userStringgetUserName()Get the userNameinthashCode()BooleanisAllowLocalTransactions()BooleanisRebalanceConnections()BooleanisShareSubscriptions()BooleanisSingleConnection()Get the number of max sessionBooleanisSubscriptionDurable()Get the status of subscription durabilityBooleanisUseJNDI()BooleanisUseLocalTx()voidsetAcknowledgeMode(String value)Set the acknowledge modevoidsetAllowLocalTransactions(Boolean allowLocalTransactions)voidsetClientId(String clientId)voidsetConnectionFactoryLookup(String value)Set the connection factory lookupvoidsetConnectionParameters(String configuration)voidsetConnectorClassName(String connectorClassName)voidsetDestination(String value)Set the destinationvoidsetDestinationLookup(String value)Set the destinationvoidsetDestinationType(String value)Set the destination typevoidsetDLQHandler(String handler)voidsetDLQJNDIName(String name)voidsetDLQMaxResent(Integer maxResent)voidsetJndiParams(String jndiParams)voidsetKeepAlive(Boolean keepAlive)voidsetKeepAliveMillis(Long keepAliveMillis)voidsetMaxMessages(Integer value)voidsetMaxSession(Integer value)Set the number of max sessionvoidsetMessageSelector(String value)Set the message selectorvoidsetMinSession(Integer value)voidsetPassword(String value)Set the passwordvoidsetProviderAdapterJNDI(String jndi)voidsetQueuePrefix(String prefix)voidsetRebalanceConnections(Boolean rebalanceConnections)voidsetReconnectInterval(Long interval)voidsetResourceAdapter(javax.resource.spi.ResourceAdapter ra)Set the resource adaptervoidsetSetupAttempts(Integer setupAttempts)voidsetSetupInterval(Long setupInterval)voidsetShareSubscriptions(Boolean shareSubscriptions)voidsetSingleConnection(Boolean value)Set the number of max sessionvoidsetSubscriptionDurability(String value)Set the subscription durabilityvoidsetSubscriptionName(String value)Set the subscription namevoidsetTopicPrefix(String prefix)voidsetTransactionTimeout(Integer value)Deprecated, for removal: This API element is subject to removal in a future version.voidsetUseDLQ(Boolean b)voidsetUseJNDI(Boolean value)voidsetUseLocalTx(Boolean localTx)voidsetUser(String value)Set the uservoidsetUserName(String value)Set the userStringtoString()Get a string representationvoidvalidate()Validate-
Methods inherited from class org.apache.activemq.artemis.ra.ConnectionFactoryProperties
getCallFailoverTimeout, getCallTimeout, getClientFailureCheckPeriod, getClientID, getCompressionLevel, 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, setCompressionLevel, 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 Boolean isUseJNDI()
- Returns:
- the useJNDI
-
setUseJNDI
public void setUseJNDI(Boolean value)
- Parameters:
value- the useJNDI to set
-
getJndiParams
public String getJndiParams()
- Returns:
- return the jndi params to use
-
setJndiParams
public void setJndiParams(String jndiParams)
-
getParsedJndiParams
public 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 String getConnectionFactoryLookup()
Get the connection factory lookup- Returns:
- The value
-
setConnectionFactoryLookup
public void setConnectionFactoryLookup(String value)
Set the connection factory lookup- Parameters:
value- The value
-
getDestination
public String getDestination()
Get the destination- Returns:
- The value
-
setDestination
public void setDestination(String value)
Set the destination- Parameters:
value- The value
-
getDestinationLookup
public String getDestinationLookup()
Get the destination lookup- Returns:
- The value
-
setDestinationLookup
public void setDestinationLookup(String value)
Set the destination- Parameters:
value- The value
-
getDestinationType
public String getDestinationType()
Get the destination type- Returns:
- The value
-
setDestinationType
public void setDestinationType(String value)
Set the destination type- Parameters:
value- The value
-
getMessageSelector
public String getMessageSelector()
Get the message selector- Returns:
- The value
-
setMessageSelector
public void setMessageSelector(String value)
Set the message selector- Parameters:
value- The value
-
getAcknowledgeMode
public String getAcknowledgeMode()
Get the acknowledge mode- Returns:
- The value
-
setQueuePrefix
public void setQueuePrefix(String prefix)
-
getQueuePrefix
public String getQueuePrefix()
-
setTopicPrefix
public void setTopicPrefix(String prefix)
-
getTopicPrefix
public String getTopicPrefix()
-
setAcknowledgeMode
public void setAcknowledgeMode(String value)
Set the acknowledge mode- Parameters:
value- The value
-
getAcknowledgeModeInt
public Integer getAcknowledgeModeInt()
- Returns:
- the acknowledgement mode
-
getSubscriptionDurability
public String getSubscriptionDurability()
Get the subscription durability- Returns:
- The value
-
setSubscriptionDurability
public void setSubscriptionDurability(String value)
Set the subscription durability- Parameters:
value- The value
-
isSubscriptionDurable
public Boolean isSubscriptionDurable()
Get the status of subscription durability- Returns:
- The value
-
getSubscriptionName
public String getSubscriptionName()
Get the subscription name- Returns:
- The value
-
setSubscriptionName
public void setSubscriptionName(String value)
Set the subscription name- Parameters:
value- The value
-
isShareSubscriptions
public Boolean isShareSubscriptions()
- Returns:
- the shareDurableSubscriptions
-
setShareSubscriptions
public void setShareSubscriptions(Boolean shareSubscriptions)
- Parameters:
shareSubscriptions- the shareDurableSubscriptions to set
-
getUser
public String getUser()
Get the user- Returns:
- The value
-
setUser
public void setUser(String value)
Set the user- Parameters:
value- The value
-
getUserName
public String getUserName()
Get the userName- Returns:
- The value
-
setUserName
public void setUserName(String value)
Set the user- Parameters:
value- The value
-
getPassword
public String getPassword()
Get the password- Returns:
- The value
-
getOwnPassword
public String getOwnPassword()
-
setPassword
public void setPassword(String value) throws Exception
Set the password- Parameters:
value- The value- Throws:
Exception
-
getMaxSession
public Integer getMaxSession()
Get the number of max session- Returns:
- The value
-
setMaxSession
public void setMaxSession(Integer value)
Set the number of max session- Parameters:
value- The value
-
isSingleConnection
public Boolean isSingleConnection()
Get the number of max session- Returns:
- The value
-
setSingleConnection
public void setSingleConnection(Boolean value)
Set the number of max session- Parameters:
value- The value
-
getTransactionTimeout
@Deprecated(forRemoval=true) public Integer getTransactionTimeout()
Deprecated, for removal: This API element is subject to removal in a future version.Get the transaction timeout- Returns:
- The value
-
setTransactionTimeout
@Deprecated(forRemoval=true) public void setTransactionTimeout(Integer value)
Deprecated, for removal: This API element is subject to removal in a future version.Set the transaction timeout- Parameters:
value- The value
-
isUseLocalTx
public Boolean isUseLocalTx()
-
setUseLocalTx
public void setUseLocalTx(Boolean localTx)
-
getRebalanceConnections
public Boolean getRebalanceConnections()
-
isRebalanceConnections
public Boolean isRebalanceConnections()
-
setRebalanceConnections
public void setRebalanceConnections(Boolean rebalanceConnections)
-
getSetupAttempts
public Integer getSetupAttempts()
-
setSetupAttempts
public void setSetupAttempts(Integer setupAttempts)
-
getSetupInterval
public Long getSetupInterval()
-
setSetupInterval
public void setSetupInterval(Long setupInterval)
-
setClientId
public void setClientId(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 String getConnectorClassName()
-
setConnectorClassName
public void setConnectorClassName(String connectorClassName)
-
getConnectionParameters
public String getConnectionParameters()
- Returns:
- the connectionParameters
-
setConnectionParameters
public void setConnectionParameters(String configuration)
-
toString
public String toString()
Get a string representation
-
setUseDLQ
public void setUseDLQ(Boolean b)
-
setDLQJNDIName
public void setDLQJNDIName(String name)
-
setDLQHandler
public void setDLQHandler(String handler)
-
setDLQMaxResent
public void setDLQMaxResent(Integer maxResent)
-
setProviderAdapterJNDI
public void setProviderAdapterJNDI(String jndi)
-
setKeepAlive
public void setKeepAlive(Boolean keepAlive)
- Parameters:
keepAlive- the keepAlive to set
-
setKeepAliveMillis
public void setKeepAliveMillis(Long keepAliveMillis)
- Parameters:
keepAliveMillis- the keepAliveMillis to set
-
setReconnectInterval
public void setReconnectInterval(Long interval)
-
setMinSession
public void setMinSession(Integer value)
-
setMaxMessages
public void setMaxMessages(Integer value)
-
isAllowLocalTransactions
public Boolean isAllowLocalTransactions()
-
setAllowLocalTransactions
public void setAllowLocalTransactions(Boolean allowLocalTransactions)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classConnectionFactoryProperties
-
hashCode
public int hashCode()
- Overrides:
hashCodein classConnectionFactoryProperties
-
-