Class ActiveMQRAConnectionRequestInfo

  • All Implemented Interfaces:
    javax.resource.spi.ConnectionRequestInfo

    public class ActiveMQRAConnectionRequestInfo
    extends Object
    implements javax.resource.spi.ConnectionRequestInfo
    Connection request information
    • Constructor Detail

      • ActiveMQRAConnectionRequestInfo

        public ActiveMQRAConnectionRequestInfo​(ActiveMQRAProperties prop,
                                               int type)
        Constructor
        Parameters:
        prop - The resource adapter properties
        type - The connection type
      • ActiveMQRAConnectionRequestInfo

        public ActiveMQRAConnectionRequestInfo​(boolean transacted,
                                               int acknowledgeMode,
                                               int type)
        Constructor
        Parameters:
        transacted - Use transactions
        acknowledgeMode - The acknowledge mode
        type - 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.
        Specified by:
        equals in interface javax.resource.spi.ConnectionRequestInfo
        Overrides:
        equals in class Object
        Parameters:
        obj - Object with which to compare
        Returns:
        True if this object is the same as the obj argument; false otherwise.
      • hashCode

        public int hashCode()
        Return the hash code for the object
        Specified by:
        hashCode in interface javax.resource.spi.ConnectionRequestInfo
        Overrides:
        hashCode in class Object
        Returns:
        The hash code