Package com.swiftmq.jms.v750
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 Summary
ConstructorsConstructorDescriptionConnectionFactoryImpl
(String socketFactoryClass, String hostname, int port, long keepaliveInterval) 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) -
Method Summary
Modifier and TypeMethodDescriptionjavax.jms.Connection
javax.jms.Connection
createConnection
(String userName, String password) javax.jms.QueueConnection
javax.jms.QueueConnection
createQueueConnection
(String userName, String password) javax.jms.TopicConnection
javax.jms.TopicConnection
createTopicConnection
(String userName, String password) javax.jms.XAConnection
javax.jms.XAConnection
createXAConnection
(String userName, String password) javax.jms.XAQueueConnection
javax.jms.XAQueueConnection
createXAQueueConnection
(String userName, String password) javax.jms.XATopicConnection
javax.jms.XATopicConnection
createXATopicConnection
(String userName, String password) int
Returns a unique dump id for this object.int
int
int
getPort2()
long
boolean
boolean
void
readContent
(DataInput in) Read the content of this object from the stream.void
setDuplicateBacklogSize
(int duplicateBacklogSize) void
setDuplicateMessageDetection
(boolean duplicateMessageDetection) void
setHostname2
(String hostname2) void
setMaxRetries
(int maxRetries) void
setPort2
(int port2) void
setReconnectEnabled
(boolean reconnectEnabled) void
setRetryDelay
(long retryDelay) toString()
void
writeContent
(DataOutput out) Write the content of this object to the stream.
-
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
-
ConnectionFactoryImpl
public ConnectionFactoryImpl()
-
-
Method Details
-
getHostname2
-
setHostname2
-
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
Description copied from interface:Dumpable
Write the content of this object to the stream.- Specified by:
writeContent
in interfaceDumpable
- Parameters:
out
- output stream- Throws:
IOException
- if an error occurs
-
readContent
Description copied from interface:Dumpable
Read the content of this object from the stream.- Specified by:
readContent
in interfaceDumpable
- Parameters:
in
- input stream- Throws:
IOException
- if an error occurs
-
getReference
- Specified by:
getReference
in interfaceReferenceable
- Throws:
NamingException
-
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(String userName, 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(String userName, 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(String userName, 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(String userName, 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(String userName, 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(String userName, String password) throws javax.jms.JMSException - Specified by:
createXATopicConnection
in interfacejavax.jms.XATopicConnectionFactory
- Throws:
javax.jms.JMSException
-
toString
-