Package com.swiftmq.jms.v750
Class ConnectionFactoryImpl
- java.lang.Object
-
- com.swiftmq.jms.v750.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 Summary
Constructors Constructor Description ConnectionFactoryImpl()
ConnectionFactoryImpl(java.lang.String socketFactoryClass, java.lang.String hostname, int port, long keepaliveInterval)
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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jms.Connection
createConnection()
javax.jms.Connection
createConnection(java.lang.String userName, java.lang.String password)
javax.jms.QueueConnection
createQueueConnection()
javax.jms.QueueConnection
createQueueConnection(java.lang.String userName, java.lang.String password)
javax.jms.TopicConnection
createTopicConnection()
javax.jms.TopicConnection
createTopicConnection(java.lang.String userName, java.lang.String password)
javax.jms.XAConnection
createXAConnection()
javax.jms.XAConnection
createXAConnection(java.lang.String userName, java.lang.String password)
javax.jms.XAQueueConnection
createXAQueueConnection()
javax.jms.XAQueueConnection
createXAQueueConnection(java.lang.String userName, java.lang.String password)
javax.jms.XATopicConnection
createXATopicConnection()
javax.jms.XATopicConnection
createXATopicConnection(java.lang.String userName, java.lang.String password)
int
getDumpId()
Returns a unique dump id for this object.int
getDuplicateBacklogSize()
java.lang.String
getHostname2()
java.lang.String
getListenerName()
int
getMaxRetries()
int
getPort2()
javax.naming.Reference
getReference()
long
getRetryDelay()
boolean
isDuplicateMessageDetection()
boolean
isReconnectEnabled()
void
readContent(java.io.DataInput in)
Read the content of this object from the stream.void
setDuplicateBacklogSize(int duplicateBacklogSize)
void
setDuplicateMessageDetection(boolean duplicateMessageDetection)
void
setHostname2(java.lang.String hostname2)
void
setMaxRetries(int maxRetries)
void
setPort2(int port2)
void
setReconnectEnabled(boolean reconnectEnabled)
void
setRetryDelay(long retryDelay)
java.lang.String
toString()
void
writeContent(java.io.DataOutput out)
Write the content of this object to the stream.
-
-
-
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.
-
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 interfaceDumpable
- 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 interfaceDumpable
- 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 interfacejavax.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 interfacejavax.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 interfacejavax.jms.ConnectionFactory
- Throws:
javax.jms.JMSException
-
createXAConnection
public javax.jms.XAConnection createXAConnection() throws javax.jms.JMSException
- Specified by:
createXAConnection
in interfacejavax.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 interfacejavax.jms.XAConnectionFactory
- Throws:
javax.jms.JMSException
-
createQueueConnection
public javax.jms.QueueConnection createQueueConnection() throws javax.jms.JMSException
- Specified by:
createQueueConnection
in interfacejavax.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 interfacejavax.jms.QueueConnectionFactory
- Throws:
javax.jms.JMSException
-
createXAQueueConnection
public javax.jms.XAQueueConnection createXAQueueConnection() throws javax.jms.JMSException
- Specified by:
createXAQueueConnection
in interfacejavax.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 interfacejavax.jms.XAQueueConnectionFactory
- Throws:
javax.jms.JMSException
-
createTopicConnection
public javax.jms.TopicConnection createTopicConnection() throws javax.jms.JMSException
- Specified by:
createTopicConnection
in interfacejavax.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 interfacejavax.jms.TopicConnectionFactory
- Throws:
javax.jms.JMSException
-
createXATopicConnection
public javax.jms.XATopicConnection createXATopicConnection() throws javax.jms.JMSException
- Specified by:
createXATopicConnection
in interfacejavax.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 interfacejavax.jms.XATopicConnectionFactory
- Throws:
javax.jms.JMSException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-