Class HazelcastSedaConfiguration
java.lang.Object
org.apache.camel.component.hazelcast.seda.HazelcastSedaConfiguration
Hazelcast SEDA Component configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
Deprecated.use pollTimeout insteadint
boolean
boolean
void
setConcurrentConsumers
(int concurrentConsumers) To use concurrent consumers polling from the SEDA queue.void
setOnErrorDelay
(int onErrorDelay) Milliseconds before consumer continues polling after an error has occurred.void
setPollInterval
(int pollInterval) Deprecated.use pollTimeout insteadvoid
setPollTimeout
(int pollTimeout) The timeout used when consuming from the SEDA queue.void
setQueueName
(String queueName) void
setTransacted
(boolean transacted) If set to true then the consumer runs in transaction mode, where the messages in the seda queue will only be removed if the transaction commits, which happens when the processing is complete.void
setTransferExchange
(boolean transferExchange) If set to true the whole Exchange will be transfered.
-
Constructor Details
-
HazelcastSedaConfiguration
public HazelcastSedaConfiguration()
-
-
Method Details
-
getConcurrentConsumers
public int getConcurrentConsumers() -
getQueueName
-
setQueueName
-
setConcurrentConsumers
public void setConcurrentConsumers(int concurrentConsumers) To use concurrent consumers polling from the SEDA queue. -
getPollInterval
Deprecated.use pollTimeout instead -
setPollInterval
Deprecated.use pollTimeout instead -
getPollTimeout
public int getPollTimeout() -
setPollTimeout
public void setPollTimeout(int pollTimeout) The timeout used when consuming from the SEDA queue. When a timeout occurs, the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown. -
isTransferExchange
public boolean isTransferExchange() -
setOnErrorDelay
public void setOnErrorDelay(int onErrorDelay) Milliseconds before consumer continues polling after an error has occurred. -
getOnErrorDelay
public int getOnErrorDelay() -
setTransferExchange
public void setTransferExchange(boolean transferExchange) If set to true the whole Exchange will be transfered. If header or body contains not serializable objects, they will be skipped. -
isTransacted
public boolean isTransacted() -
setTransacted
public void setTransacted(boolean transacted) If set to true then the consumer runs in transaction mode, where the messages in the seda queue will only be removed if the transaction commits, which happens when the processing is complete.
-