Class ConnectionFactoryImpl

java.lang.Object
com.swiftmq.jms.v750.ConnectionFactoryImpl
All Implemented Interfaces:
CompoundConnectionFactory, Dumpable, Serializable, javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.jms.TopicConnectionFactory, javax.jms.XAConnectionFactory, javax.jms.XAQueueConnectionFactory, javax.jms.XATopicConnectionFactory, Referenceable

public class ConnectionFactoryImpl extends Object implements CompoundConnectionFactory, Referenceable, Serializable, Dumpable
See Also:
  • Constructor Details

    • ConnectionFactoryImpl

      public ConnectionFactoryImpl(String listenerName, String socketFactoryClass, String hostname, int port, long keepaliveInterval, 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(String socketFactoryClass, String hostname, int port, long keepaliveInterval)
    • ConnectionFactoryImpl

      public ConnectionFactoryImpl()
  • Method Details

    • getHostname2

      public String getHostname2()
    • setHostname2

      public void setHostname2(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(DataOutput out) throws 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:
      IOException - if an error occurs
    • readContent

      public void readContent(DataInput in) throws 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:
      IOException - if an error occurs
    • getReference

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

      public 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(String userName, 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(String userName, 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(String userName, 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(String userName, 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(String userName, 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(String userName, String password) throws javax.jms.JMSException
      Specified by:
      createXATopicConnection in interface javax.jms.XATopicConnectionFactory
      Throws:
      javax.jms.JMSException
    • toString

      public String toString()
      Overrides:
      toString in class Object