Class IronMQConfiguration
- java.lang.Object
-
- org.apache.camel.component.ironmq.IronMQConfiguration
-
@UriParams public class IronMQConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description IronMQConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.iron.ironmq.Client
getClient()
int
getConcurrentConsumers()
String
getIronMQCloud()
int
getMaxMessagesPerPoll()
String
getProjectId()
String
getQueueName()
int
getTimeout()
String
getToken()
int
getVisibilityDelay()
int
getWait()
boolean
isBatchDelete()
boolean
isPreserveHeaders()
void
setBatchDelete(boolean batchDelete)
Should messages be deleted in one batch.void
setClient(io.iron.ironmq.Client client)
Reference to a io.iron.ironmq.Client in the Registry.void
setConcurrentConsumers(int concurrentConsumers)
The number of concurrent consumers.void
setIronMQCloud(String ironMQCloud)
IronMq Cloud url.void
setMaxMessagesPerPoll(int maxMessagesPerPoll)
Number of messages to poll pr.void
setPreserveHeaders(boolean preserveHeaders)
Should message headers be preserved when publishing messages.void
setProjectId(String projectId)
IronMQ projectIdvoid
setQueueName(String queueName)
The name of the IronMQ queuevoid
setTimeout(int timeout)
After timeout (in seconds), item will be placed back onto the queue.void
setToken(String token)
IronMQ tokenvoid
setVisibilityDelay(int visibilityDelay)
The item will not be available on the queue until this many seconds have passed.void
setWait(int wait)
Time in seconds to wait for a message to become available.
-
-
-
Method Detail
-
getClient
public io.iron.ironmq.Client getClient()
-
setClient
public void setClient(io.iron.ironmq.Client client)
Reference to a io.iron.ironmq.Client in the Registry.
-
getConcurrentConsumers
public int getConcurrentConsumers()
-
setConcurrentConsumers
public void setConcurrentConsumers(int concurrentConsumers)
The number of concurrent consumers.
-
getProjectId
public String getProjectId()
-
setProjectId
public void setProjectId(String projectId)
IronMQ projectId
-
getToken
public String getToken()
-
setToken
public void setToken(String token)
IronMQ token
-
setQueueName
public void setQueueName(String queueName)
The name of the IronMQ queue
-
getQueueName
public String getQueueName()
-
setIronMQCloud
public void setIronMQCloud(String ironMQCloud)
IronMq Cloud url. Urls for public clusters: https://mq-aws-us-east-1-1.iron.io (US) and https://mq-aws-eu-west-1-1.iron.io (EU)
-
getIronMQCloud
public String getIronMQCloud()
-
getTimeout
public int getTimeout()
-
setTimeout
public void setTimeout(int timeout)
After timeout (in seconds), item will be placed back onto the queue.
-
getMaxMessagesPerPoll
public int getMaxMessagesPerPoll()
-
setMaxMessagesPerPoll
public void setMaxMessagesPerPoll(int maxMessagesPerPoll)
Number of messages to poll pr. call. Maximum is 100.
-
getVisibilityDelay
public int getVisibilityDelay()
-
setVisibilityDelay
public void setVisibilityDelay(int visibilityDelay)
The item will not be available on the queue until this many seconds have passed. Default is 0 seconds.
-
isPreserveHeaders
public boolean isPreserveHeaders()
-
setPreserveHeaders
public void setPreserveHeaders(boolean preserveHeaders)
Should message headers be preserved when publishing messages. This will add the Camel headers to the Iron MQ message as a json payload with a header list, and a message body. Useful when Camel is both consumer and producer.
-
isBatchDelete
public boolean isBatchDelete()
-
setBatchDelete
public void setBatchDelete(boolean batchDelete)
Should messages be deleted in one batch. This will limit the number of api requests since messages are deleted in one request, instead of one pr. exchange. If enabled care should be taken that the consumer is idempotent when processing exchanges.
-
getWait
public int getWait()
-
setWait
public void setWait(int wait)
Time in seconds to wait for a message to become available. This enables long polling. Default is 0 (does not wait), maximum is 30.
-
-