Class ConnectionFactoryImpl

  • All Implemented Interfaces:
    CompoundConnectionFactory, Dumpable, java.io.Serializable, javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.jms.TopicConnectionFactory, javax.jms.XAConnectionFactory, javax.jms.XAQueueConnectionFactory, javax.jms.XATopicConnectionFactory, javax.naming.Referenceable

    public class ConnectionFactoryImpl
    extends java.lang.Object
    implements CompoundConnectionFactory, javax.naming.Referenceable, java.io.Serializable, Dumpable
    See Also:
    Serialized Form
    • Constructor Detail

      • ConnectionFactoryImpl

        public ConnectionFactoryImpl​(java.lang.String listenerName,
                                     java.lang.String socketFactoryClass,
                                     java.lang.String hostname,
                                     int port,
                                     long keepaliveInterval,
                                     java.lang.String clientId,
                                     int smqpProducerReplyInterval,
                                     int smqpConsumerCacheSize,
                                     int smqpConsumerCacheSizeKB,
                                     int jmsDeliveryMode,
                                     int jmsPriority,
                                     long jmsTTL,
                                     boolean jmsMessageIdEnabled,
                                     boolean jmsMessageTimestampEnabled,
                                     boolean useThreadContextCL,
                                     int inputBufferSize,
                                     int inputExtendSize,
                                     int outputBufferSize,
                                     int outputExtendSize,
                                     boolean intraVM)
      • ConnectionFactoryImpl

        public ConnectionFactoryImpl​(java.lang.String socketFactoryClass,
                                     java.lang.String hostname,
                                     int port,
                                     long keepaliveInterval)
      • ConnectionFactoryImpl

        public ConnectionFactoryImpl()
    • Method Detail

      • getHostname2

        public java.lang.String getHostname2()
      • setHostname2

        public void setHostname2​(java.lang.String hostname2)
      • getPort2

        public int getPort2()
      • setPort2

        public void setPort2​(int port2)
      • isReconnectEnabled

        public boolean isReconnectEnabled()
      • setReconnectEnabled

        public void setReconnectEnabled​(boolean reconnectEnabled)
      • getMaxRetries

        public int getMaxRetries()
      • setMaxRetries

        public void setMaxRetries​(int maxRetries)
      • getRetryDelay

        public long getRetryDelay()
      • setRetryDelay

        public void setRetryDelay​(long retryDelay)
      • isDuplicateMessageDetection

        public boolean isDuplicateMessageDetection()
      • setDuplicateMessageDetection

        public void setDuplicateMessageDetection​(boolean duplicateMessageDetection)
      • getDuplicateBacklogSize

        public int getDuplicateBacklogSize()
      • setDuplicateBacklogSize

        public void setDuplicateBacklogSize​(int duplicateBacklogSize)
      • getDumpId

        public int getDumpId()
        Description copied from interface: Dumpable
        Returns a unique dump id for this object.
        Specified by:
        getDumpId in interface Dumpable
        Returns:
        unique dump id
      • writeContent

        public void writeContent​(java.io.DataOutput out)
                          throws java.io.IOException
        Description copied from interface: Dumpable
        Write the content of this object to the stream.
        Specified by:
        writeContent in interface Dumpable
        Parameters:
        out - output stream
        Throws:
        java.io.IOException - if an error occurs
      • readContent

        public void readContent​(java.io.DataInput in)
                         throws java.io.IOException
        Description copied from interface: Dumpable
        Read the content of this object from the stream.
        Specified by:
        readContent in interface Dumpable
        Parameters:
        in - input stream
        Throws:
        java.io.IOException - if an error occurs
      • getReference

        public javax.naming.Reference getReference()
                                            throws javax.naming.NamingException
        Specified by:
        getReference in interface javax.naming.Referenceable
        Throws:
        javax.naming.NamingException
      • getListenerName

        public java.lang.String getListenerName()
      • createConnection

        public javax.jms.Connection createConnection()
                                              throws javax.jms.JMSException
        Specified by:
        createConnection in interface javax.jms.ConnectionFactory
        Throws:
        javax.jms.JMSException
      • createConnection

        public javax.jms.Connection createConnection​(java.lang.String userName,
                                                     java.lang.String password)
                                              throws javax.jms.JMSException
        Specified by:
        createConnection in interface javax.jms.ConnectionFactory
        Throws:
        javax.jms.JMSException
      • createXAConnection

        public javax.jms.XAConnection createXAConnection()
                                                  throws javax.jms.JMSException
        Specified by:
        createXAConnection in interface javax.jms.XAConnectionFactory
        Throws:
        javax.jms.JMSException
      • createXAConnection

        public javax.jms.XAConnection createXAConnection​(java.lang.String userName,
                                                         java.lang.String password)
                                                  throws javax.jms.JMSException
        Specified by:
        createXAConnection in interface javax.jms.XAConnectionFactory
        Throws:
        javax.jms.JMSException
      • createQueueConnection

        public javax.jms.QueueConnection createQueueConnection()
                                                        throws javax.jms.JMSException
        Specified by:
        createQueueConnection in interface javax.jms.QueueConnectionFactory
        Throws:
        javax.jms.JMSException
      • createQueueConnection

        public javax.jms.QueueConnection createQueueConnection​(java.lang.String userName,
                                                               java.lang.String password)
                                                        throws javax.jms.JMSException
        Specified by:
        createQueueConnection in interface javax.jms.QueueConnectionFactory
        Throws:
        javax.jms.JMSException
      • createXAQueueConnection

        public javax.jms.XAQueueConnection createXAQueueConnection()
                                                            throws javax.jms.JMSException
        Specified by:
        createXAQueueConnection in interface javax.jms.XAQueueConnectionFactory
        Throws:
        javax.jms.JMSException
      • createXAQueueConnection

        public javax.jms.XAQueueConnection createXAQueueConnection​(java.lang.String userName,
                                                                   java.lang.String password)
                                                            throws javax.jms.JMSException
        Specified by:
        createXAQueueConnection in interface javax.jms.XAQueueConnectionFactory
        Throws:
        javax.jms.JMSException
      • createTopicConnection

        public javax.jms.TopicConnection createTopicConnection()
                                                        throws javax.jms.JMSException
        Specified by:
        createTopicConnection in interface javax.jms.TopicConnectionFactory
        Throws:
        javax.jms.JMSException
      • createTopicConnection

        public javax.jms.TopicConnection createTopicConnection​(java.lang.String userName,
                                                               java.lang.String password)
                                                        throws javax.jms.JMSException
        Specified by:
        createTopicConnection in interface javax.jms.TopicConnectionFactory
        Throws:
        javax.jms.JMSException
      • createXATopicConnection

        public javax.jms.XATopicConnection createXATopicConnection()
                                                            throws javax.jms.JMSException
        Specified by:
        createXATopicConnection in interface javax.jms.XATopicConnectionFactory
        Throws:
        javax.jms.JMSException
      • createXATopicConnection

        public javax.jms.XATopicConnection createXATopicConnection​(java.lang.String userName,
                                                                   java.lang.String password)
                                                            throws javax.jms.JMSException
        Specified by:
        createXATopicConnection in interface javax.jms.XATopicConnectionFactory
        Throws:
        javax.jms.JMSException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object