@ComponentProfile(summary="Receive Messages from IronMQ",
tag="consumer,ironmq",
recommended=com.adaptris.core.NullConnection.class)
public class IronConsumer
extends AdaptrisPollingConsumer
This class wraps an Iron Client.
In the adapter configuration file this class is aliased as ironmq-consumer which is the preferred alternative to the fully qualified classname when building your configuration.
License Required: STANDARD
AdaptrisPollingConsumer.LockOperatorCONFIRMATION_ID_KEY| Constructor and Description |
|---|
IronConsumer()
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCloud()
The Iron MQ cloud to communicate with.
|
java.lang.String |
getProject()
The Iron MQ project to communicate with.
|
java.lang.Integer |
getReceiveMessages()
Get the number of message read at a time from the broker.
|
java.lang.Integer |
getTimeout()
The message's timeout in seconds.
|
java.lang.String |
getToken()
The Iron MQ project token.
|
protected void |
prepareConsumer() |
protected int |
processMessages() |
void |
setCloud(java.lang.String cloud)
The Iron MQ cloud to communicate with.
|
void |
setProject(java.lang.String project)
The Iron MQ project to communicate with.
|
void |
setReceiveMessages(java.lang.Integer receiveMessages)
Set the number of message read at a time from the broker.
|
void |
setTimeout(java.lang.Integer timeout)
The message's timeout in seconds.
|
void |
setToken(java.lang.String token)
The Iron MQ project token.
|
close, continueProcessingMessages, getMaxMessagesPerPoll, getPoller, getReacquireLockBetweenMessages, init, prepare, releaseLock, setMaxMessagesPerPoll, setPoller, setReacquireLockBetweenMessages, start, stopchangeState, getDestination, registerAdaptrisMessageListener, renameThread, requestClose, requestInit, requestStart, requestStop, retrieveAdaptrisMessageListener, retrieveComponentState, setDestinationcreateName, createQualifier, decode, encode, getEncoder, getIsTrackingEndpoint, getMessageFactory, getUniqueId, handleConnectionException, isTrackingEndpoint, registerConnection, registerEncoderMessageFactory, retrieveConnection, setEncoder, setIsTrackingEndpoint, setMessageFactory, setUniqueId, withMessageFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconsumeLocationKeydecode, encode, getEncoder, getMessageFactory, handleConnectionException, registerConnection, retrieveConnection, setEncoder, setMessageFactorygetUniqueIdcreateName, createQualifier, isTrackingEndpointprotected int processMessages()
processMessages in class AdaptrisPollingConsumerprotected void prepareConsumer()
throws CoreException
prepareConsumer in class AdaptrisPollingConsumerCoreExceptionpublic java.lang.String getCloud()
public void setCloud(java.lang.String cloud)
cloud - Generally ironAWSUSEastpublic java.lang.String getProject()
public void setProject(java.lang.String project)
project - public java.lang.String getToken()
public void setToken(java.lang.String token)
token - may be encoded using Password.encode(String, String)public java.lang.Integer getTimeout()
public void setTimeout(java.lang.Integer timeout)
timeout - in secondspublic java.lang.Integer getReceiveMessages()
public void setReceiveMessages(java.lang.Integer receiveMessages)
receiveMessages -