public class AndesJMSPublisherClientConfiguration extends AndesJMSClientConfiguration
| Constructor and Description |
|---|
AndesJMSPublisherClientConfiguration()
Creates a connection string with default properties.
|
AndesJMSPublisherClientConfiguration(AndesJMSClientConfiguration config)
The copy constructor for the JMS base class.
|
AndesJMSPublisherClientConfiguration(ExchangeType exchangeType,
String destinationName)
Creates a publisher with a given exchange type and destination with default connection
string.
|
AndesJMSPublisherClientConfiguration(int port,
ExchangeType exchangeType,
String destinationName)
Creates a publisher with a given host name, port for connection string and exchange type and
destination name.
|
AndesJMSPublisherClientConfiguration(int port,
String userName,
String password,
ExchangeType exchangeType,
String destinationName)
Creates a publisher with a given port, username, password, for connection
string and exchange type and destination name.
|
AndesJMSPublisherClientConfiguration(String xmlConfigFilePath)
Creates a configuration for a publisher using an xml file.
|
AndesJMSPublisherClientConfiguration(String hostName,
int port,
ExchangeType exchangeType,
String destinationName)
Creates a publisher with a given host name, port for connection string and exchange type and
destination name.
|
AndesJMSPublisherClientConfiguration(String userName,
String password,
ExchangeType exchangeType,
String destinationName)
Creates a publisher with a given username, password, for connection
string and exchange type and destination name.
|
AndesJMSPublisherClientConfiguration(String userName,
String password,
String hostName,
int port,
ExchangeType exchangeType,
String destinationName)
Creates a publisher with a given user name, password, host name, password for connection
string and exchange type and destination name.
|
AndesJMSPublisherClientConfiguration(String userName,
String password,
String hostName,
int port,
ExchangeType exchangeType,
String destinationName,
String sslAlias,
String trustStorePath,
String trustStorePassword,
String keyStorePath,
String keyStorePassword)
Creates a JMS message publisher with a given AMQP transport connection string for SSL and a
given exchange type and destination.
|
| Modifier and Type | Method and Description |
|---|---|
AndesJMSPublisherClientConfiguration |
clone() |
String |
getFilePathToWritePublishedMessages()
Gets the file path where published messages are written.
|
List<JMSHeaderProperty> |
getJMSHeaderProperties() |
long |
getJMSMessageExpiryTime()
Gets the messages expiry time.
|
JMSMessageType |
getJMSMessageType()
Gets JMS message type.
|
String |
getJMSType()
Get JMS type
|
String |
getMessagesContentToSet()
Get the message content to send
|
long |
getNumberOfMessagesToSend()
Gets the number of messages to be sent by the publisher.
|
String |
getReadMessagesFromFilePath()
Gets the file path to read a string content which would be used to as message content when
publishing.
|
boolean |
isTransactionalSession()
Whether the session needs to be transactional or not.
|
void |
setFilePathToWritePublishedMessages(String filePathToWritePublishedMessages)
Sets the file path to write messages that are being published by the client.
|
void |
setJMSHeaderProperty(String key,
Object value,
JMSHeaderPropertyType type)
Set a header property to the messages published
|
void |
setJMSMessageExpiryTime(long jmsMessageExpiryTime)
Sets the message expiry time.
|
void |
setJMSMessageType(JMSMessageType jmsMessageType)
Sets JMS message type.
|
void |
setJMSType(String jmsType)
Set JMS Type to be set for publishing messages
|
void |
setMessagesContentOfConfiguration(String messagesContentToSet)
Set the message content to send
|
void |
setNumberOfMessagesToSend(long numberOfMessagesToSend)
Sets the number of messages to be sent by the publisher
|
void |
setReadMessagesFromFilePath(String readMessagesFromFilePath)
Sets the file path to read a string content which would be used to as message content when
publishing.
|
void |
setTransactionalSession(boolean transactionalSession)
Set the session transactional.
|
String |
toString() |
getConnectionString, getDestinationName, getExchangeType, getFilePathToWriteStatistics, getHostName, getPassword, getPort, getPrintsPerMessageCount, getRunningDelay, getUserName, setConnectionString, setDestinationName, setExchangeType, setFilePathToWriteStatistics, setHostName, setPassword, setPort, setPrintsPerMessageCount, setRunningDelay, setUserNamepublic AndesJMSPublisherClientConfiguration()
public AndesJMSPublisherClientConfiguration(ExchangeType exchangeType, String destinationName)
exchangeType - The exchange type.destinationName - The destination name.public AndesJMSPublisherClientConfiguration(String hostName, int port, ExchangeType exchangeType, String destinationName)
hostName - The host name for connection string.port - The port for the connection string.exchangeType - The exchange type.destinationName - The destination name.public AndesJMSPublisherClientConfiguration(int port,
ExchangeType exchangeType,
String destinationName)
port - The port for the connection string.exchangeType - The exchange type.destinationName - The destination name.public AndesJMSPublisherClientConfiguration(String userName, String password, ExchangeType exchangeType, String destinationName)
userName - The user name for the connection string.password - The password for the connection string.exchangeType - The exchange type.destinationName - The destination name.public AndesJMSPublisherClientConfiguration(int port,
String userName,
String password,
ExchangeType exchangeType,
String destinationName)
userName - The user name for the connection string.password - The password for the connection string.exchangeType - The exchange type.destinationName - The destination name.public AndesJMSPublisherClientConfiguration(String userName, String password, String hostName, int port, ExchangeType exchangeType, String destinationName)
userName - The user name for the connection string.password - The password for the connection string.hostName - The host name for the connection string.port - The port for the connection string.exchangeType - The exchange type.destinationName - The destination name.public AndesJMSPublisherClientConfiguration(String xmlConfigFilePath) throws AndesClientConfigurationException
xmlConfigFilePath - The file path for the xml configuration file path.AndesClientConfigurationExceptionpublic AndesJMSPublisherClientConfiguration(AndesJMSClientConfiguration config)
config - The configuration to be copied.public AndesJMSPublisherClientConfiguration(String userName, String password, String hostName, int port, ExchangeType exchangeType, String destinationName, String sslAlias, String trustStorePath, String trustStorePassword, String keyStorePath, String keyStorePassword)
userName - The user name for the connection string.password - The password for the connection string.hostName - The host name for the connection string.port - The port for the connection string.exchangeType - The exchange type.destinationName - The destination name.sslAlias - The ssl alias to use in ssl connection.trustStorePath - The file path for trust store to use in ssl connection.trustStorePassword - The trust store password to use in ssl connection.keyStorePath - The file path for key store to use in ssl connection.keyStorePassword - The key store password to use in ssl connection.public String getReadMessagesFromFilePath()
public void setReadMessagesFromFilePath(String readMessagesFromFilePath) throws AndesClientConfigurationException, FileNotFoundException
readMessagesFromFilePath - The file path.AndesClientConfigurationExceptionFileNotFoundExceptionpublic JMSMessageType getJMSMessageType()
public void setJMSHeaderProperty(String key, Object value, JMSHeaderPropertyType type)
key - key of the headervalue - value of the headertype - type of the header (Boolean, Integer, Long etc)public void setJMSType(String jmsType)
jmsType - jmsType to setpublic String getJMSType()
public void setJMSMessageType(JMSMessageType jmsMessageType)
jmsMessageType - JMS message typepublic long getNumberOfMessagesToSend()
public void setNumberOfMessagesToSend(long numberOfMessagesToSend)
throws AndesClientConfigurationException
numberOfMessagesToSend - The number of messages.AndesClientConfigurationExceptionpublic String getFilePathToWritePublishedMessages()
public void setFilePathToWritePublishedMessages(String filePathToWritePublishedMessages)
filePathToWritePublishedMessages - The file pathpublic long getJMSMessageExpiryTime()
public void setJMSMessageExpiryTime(long jmsMessageExpiryTime)
throws AndesClientConfigurationException
jmsMessageExpiryTime - The message expiry time.AndesClientConfigurationExceptionpublic String toString()
toString in class AndesJMSClientConfigurationpublic AndesJMSPublisherClientConfiguration clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic boolean isTransactionalSession()
public void setTransactionalSession(boolean transactionalSession)
transactionalSession - true if session needs to be transactional and false otherwisepublic List<JMSHeaderProperty> getJMSHeaderProperties()
public String getMessagesContentToSet()
public void setMessagesContentOfConfiguration(String messagesContentToSet)
messagesContentToSet - The message content to sendCopyright © 2019 WSO2. All rights reserved.