Class Consumer
java.lang.Object
com.swiftmq.impl.amqp.amqp.v00_09_01.Consumer
-
Constructor Summary
ConstructorDescriptionConsumer
(SwiftletContext ctx, ChannelHandler channelHandler, String consumerTag, String originalQueueName, String queueName, boolean noAck, boolean noLocal) -
Method Summary
Modifier and TypeMethodDescriptionvoid
ack
(MessageIndex messageIndex) void
close()
boolean
isClosed()
boolean
isNoAck()
boolean
void
reject
(MessageIndex messageIndex) void
void
startMessageProcessor
(SourceMessageProcessor messageProcessor) toString()
-
Constructor Details
-
Consumer
public Consumer(SwiftletContext ctx, ChannelHandler channelHandler, String consumerTag, String originalQueueName, String queueName, boolean noAck, boolean noLocal) throws Exception - Throws:
Exception
-
-
Method Details
-
getChannelHandler
-
getConsumerTag
-
getOriginalQueueName
-
getQueueName
-
isNoAck
public boolean isNoAck() -
isNoLocal
public boolean isNoLocal() -
isClosed
public boolean isClosed() -
startMessageProcessor
public void startMessageProcessor() throws QueueException- Throws:
QueueException
-
startMessageProcessor
- Throws:
QueueException
-
ack
- Throws:
Exception
-
reject
- Throws:
Exception
-
close
public void close() -
toString
-