Package org.apache.activemq.artemis.ra
Class ActiveMQRAConnectionRequestInfo
- java.lang.Object
-
- org.apache.activemq.artemis.ra.ActiveMQRAConnectionRequestInfo
-
- All Implemented Interfaces:
javax.resource.spi.ConnectionRequestInfo
public class ActiveMQRAConnectionRequestInfo extends Object implements javax.resource.spi.ConnectionRequestInfo
Connection request information
-
-
Constructor Summary
Constructors Constructor Description ActiveMQRAConnectionRequestInfo(boolean transacted, int acknowledgeMode, int type)ConstructorActiveMQRAConnectionRequestInfo(ActiveMQRAProperties prop, int type)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Indicates whether some other object is "equal to" this one.intgetAcknowledgeMode()Get the acknowledge modeStringgetClientID()Get the client idStringgetPassword()Get the passwordintgetType()Get the connection typeStringgetUserName()Get the user nameinthashCode()Return the hash code for the objectbooleanisTransacted()Use transactionsvoidsetClientID(String clientID)Set the client idvoidsetDefaults(ActiveMQRAProperties prop)Fill in default values if they are missingvoidsetPassword(String password)Set the passwordvoidsetUserName(String userName)Set the user nameStringtoString()
-
-
-
Constructor Detail
-
ActiveMQRAConnectionRequestInfo
public ActiveMQRAConnectionRequestInfo(ActiveMQRAProperties prop, int type)
Constructor- Parameters:
prop- The resource adapter propertiestype- The connection type
-
ActiveMQRAConnectionRequestInfo
public ActiveMQRAConnectionRequestInfo(boolean transacted, int acknowledgeMode, int type)Constructor- Parameters:
transacted- Use transactionsacknowledgeMode- The acknowledge modetype- The connection type
-
-
Method Detail
-
setDefaults
public void setDefaults(ActiveMQRAProperties prop)
Fill in default values if they are missing- Parameters:
prop- The resource adapter properties
-
getUserName
public String getUserName()
Get the user name- Returns:
- The value
-
setUserName
public void setUserName(String userName)
Set the user name- Parameters:
userName- The value
-
getPassword
public String getPassword()
Get the password- Returns:
- The value
-
setPassword
public void setPassword(String password)
Set the password- Parameters:
password- The value
-
getClientID
public String getClientID()
Get the client id- Returns:
- The value
-
setClientID
public void setClientID(String clientID)
Set the client id- Parameters:
clientID- The value
-
getType
public int getType()
Get the connection type- Returns:
- The type
-
isTransacted
public boolean isTransacted()
Use transactions- Returns:
- True if transacted; otherwise false
-
getAcknowledgeMode
public int getAcknowledgeMode()
Get the acknowledge mode- Returns:
- The mode
-
equals
public boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.
-
hashCode
public int hashCode()
Return the hash code for the object
-
-