Cocop.AmqpMathToolConnector  2.1.0
API to connect math environment with AMQP
Public Member Functions | List of all members
eu.cocop.amqp2math.AmqpPropsManager Class Reference

Public Member Functions

 AmqpPropsManager (String host, String excName, String user, String pwd)
 
void setPort (int i)
 
void setSecure (boolean sec)
 
void setExchangeDurable (boolean dur)
 
void setExchangeAutoDelete (boolean aut)
 

Detailed Description

Holds message bus properties.

Author
Petri Kannisto

Constructor & Destructor Documentation

◆ AmqpPropsManager()

eu.cocop.amqp2math.AmqpPropsManager.AmqpPropsManager ( String  host,
String  excName,
String  user,
String  pwd 
)

Constructor.

Parameters
hostHost.
excNameExchange name.
userUsername.
pwdPassword.

Member Function Documentation

◆ setExchangeAutoDelete()

void eu.cocop.amqp2math.AmqpPropsManager.setExchangeAutoDelete ( boolean  aut)

Gets whether the exchange shall apply "auto delete" (i.e., be automatically deleted when all queues have been deleted).

Parameters
autTrue if enabled, otherwise false.

◆ setExchangeDurable()

void eu.cocop.amqp2math.AmqpPropsManager.setExchangeDurable ( boolean  dur)

Sets whether the exchange shall be durable (i.e., survive a broker restart).

Parameters
durTrue if durable, otherwise false.

◆ setPort()

void eu.cocop.amqp2math.AmqpPropsManager.setPort ( int  i)

Sets the AMQP server port. If not set, a default port will be chosen. The default depends on whether the connection is secure or not.

Parameters
iPort number.

◆ setSecure()

void eu.cocop.amqp2math.AmqpPropsManager.setSecure ( boolean  sec)

Sets whether a secure connection is used. The default is "true".

Parameters
secTrue if secure, otherwise false.

The documentation for this class was generated from the following file: